Skip to content

A python program that allows anyone to send emails to multiple clients and store the confirmation status in a file.

Notifications You must be signed in to change notification settings

ShahDishank/email_automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Automation

A python program to send customised email to many clients.

Run Locally

Clone the project

  git clone https://github.com/ShahDishank/email_automation

Go to the project directory

  cd email_automation

Install dependencies

  pip install -r requirements.txt

Make .env file

  from = "[email protected]"
  password = "your-google-app-password"

see how to create google app password: https://www.youtube.com/watch?v=lSURGX0JHbA

  • Add details of the clients emails in data.csv file

  • Make html template of body message in body.html file

  • Give arguments in msg.add_alternative function call in mail.py file

msg.add_alternative(body.format(data = html.format(FirstName = fn, LastName = ln)),subtype="html",)
// write the values of variables of body.html file here
  • Write subject in send_email function call in mail.py file
  send_email("Demo Email")  // write your subject here

Run the program

  python mail.py

Feedback

If you have any feedback, please reach out to me at [email protected]

Tech Stack

Language: Python

Author

About

A python program that allows anyone to send emails to multiple clients and store the confirmation status in a file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published