Mail Merger
The purpose of this project is to send emails with the same body but to different people with their own titles and names from a google account. This project was created to help a friend email professors about research opportunities in their current projects. This project uses the smtplib and email.message Python modules.
For the script to work, you will need to follow the instructions in this video to turn on the two step verification for the Google Account.
The repository contains two files:
-
main.py
: Write the body of the email by editing this file. Write the body in the variable calledbody
which is a f-string -
people.txt
: Write the title, last name, and email separated by spaces. Separate each different person with a new line. Example:Dr. Foo foo@bar.com
To run the file in the command line, just run
python3 main.py
The source code can be found here.