Skip to content

sooryaprakash31/Mail-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail-it

A module written using python to send a mail template to 'n' email addresses.
Updated version is available here

Set Up

  1. Clone this repository
  2. Populate the data.csv file with the users data
    • data.csv must have 'id' and 'email' columns
id email
1 xyz@abc.com
  1. Include the from email address and password in mail_manager.py

Edit Template

Insert your mail message by editing one of the files in templates folder

Example:

email_message.txt

Hey {name}! your monthly bill is {amount}

email_message.html

<html>
     <head></head>
     <body>
          <p>Hey {name}!</p></br>
          <p>Yout monthly bill is {amount}</p> </br>
     </body>
</html>

The variables name and amount get rendered with user's data from the data.csv file

Execute

Run the module using command line arguments

To view a particular user
python Mail-it View -id <idno>

or

python Mail-it View -email <email>
To view all users
python Mail-it ViewAll
To view a range of users
python Mail-it ViewRange

Reads start and end id no of the range

To message a particular user
python Mail-it Message -id <idno>

or

python Mail-it Message -email <email>

Reads Subject

To message all users
python Mail-it MessageAll

Reads subject

To message a range of users
python Mail-it MessageRange

Reads subject, start and end id no of the range

The job is done!

About

A tool to send personalized emails in bulk using python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published