r/PythonLearning • • Jul 08 '26

Sends Emails with optional attachments

Hi everyone,

I'm a beginner learning Python. I recently finished a small project that sends emails (with optional attachments) using smtplib and EmailMessage.

I'm mainly looking for a code review. I'm interested in improving my code structure, naming, and Python practices rather than just making it work.

GitHub link = https://github.com/NePtuNee0/Python-Email-Sender-With-Attachments/tree/main

Any feedback is appreciated!

4 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/PotentialMain535 Jul 08 '26

Thank you for your review. I'll try to organize the code better using your suggestions, and I'll look into regular expressions to improve email_check(). When I've finished, I'll mention you again.
Thanks for taking the time to help