A module written using python to send a mail template to 'n' email addresses.
Updated version is available here
- Clone this repository
- Populate the data.csv file with the users data
- data.csv must have 'id' and 'email' columns
- data.csv must have 'id' and 'email' columns
id | |
---|---|
1 | xyz@abc.com |
- Include the from email address and password in mail_manager.py
Insert your mail message by editing one of the files in templates folder
Example:
email_message.txt
Hey {name}! your monthly bill is {amount}
<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
Run the module using command line arguments
python Mail-it View -id <idno>
or
python Mail-it View -email <email>
python Mail-it ViewAll
python Mail-it ViewRange
Reads start and end id no of the range
python Mail-it Message -id <idno>
or
python Mail-it Message -email <email>
Reads Subject
python Mail-it MessageAll
Reads subject
python Mail-it MessageRange
Reads subject, start and end id no of the range
The job is done!