Inspiration
A lot of E-Mails were needed to be sent out during a College Event. So being the lazy person I am, I built these scripts to automatically send out the emails quickly, and effectively.
What it does
It sends Emails! That's the simplest explanation. Be it simple Text Emails, or HTML Emails, or be that you have a large CSV File and you need to send E-Mails to multiple recipients. It does all that.
How we built it
Built using Python. The library used to send emails is called 'smtplib'. It communicates with the Gmail SMTP server (in my case) and sends the email via the Gmail account. HTML Emails and Attachments are added using the 'MIME' set of libraries, there are many.
Challenges we ran into
Honestly, this was a pretty easy implementation of Python, hence there were not so many challenges I faced, except a few syntactical errors. It was pretty fun making this all along.
Accomplishments that we're proud of
It was a breeze to load up multiple emails in a CSV file, and send the actual emails when required. This script is used in almost every college event I organized, and sending emails to hundreds of participants never was a problem.
What we learned
From this project, I learned a lot. The first thing was, If you can Automate something, just do it. It will make your life a lot easier. But seriously, I learned a lot about Programming with Python and using the different libraries it has to offer. Python has always been my main programming language, and it can get a lot done.
What's next for Email Automation with Python
I wanted to make a few HTML E-Mail Templates that you can just load up, fill some data in, and send. Would work in that in GitHub later. About the code, I'll also build an option to add attachments to the emails, which is not yet there, but pretty simple.
Built With
- python
- smtplib
Log in or sign up for Devpost to join the conversation.