GMailer
Requirements
- Python 3
- python-dotenv==0.19.2
- beautifulsoup4==4.10.0
Getting ready...
-
Copy and past
.env.example
file and then change the name to.env
-
Change the env file properties. e.g.
EMAIL_PASSWORD=super_duper_secret_password
-
Windows OS
- Download get-pip.py and then put it into the directory of the project.
- Run
install.bat
as administrator. - Or you can install using
requirements.txt
on cmd window.pip install -r requirements.txt
-
Mac / Linux OS
- Open
Terminal
- Move to the
directory of this project
.cd ~/Downloads/GMailer
- Install requirements.
pip install -r requirements.txt
- Open
How to use
- Edit
contents.html
file, which represents the contents of the email you will send. - Edit
recipients.txt
, which is literally recipients list separated by a comma and a line break. Also, the duplicated emails will be removed. - When sending emails fails, the list of addresses that failed to send email will be stored in
failed.txt
- Run the script using this code on the terminal or cmd window:
python3 main.py -t "<MAIL_TITLE>"
Cautions
- All emails will be sent in splits of 1 per 100 people because of the limitation.