Send mail through SMTP with Python
.gitignore | ||
mail.py | ||
README.md | ||
vars.py.example |
pymail
Easily send mails via SMTP and python
Setup
- Copy
vars.py.example
tovars.py
- Setup
vars.py
with your credentials - Adapt
message.txt
and importcontacts.csv
Usage
python mail.py
Templating
You can use the keys from your csv
directly, prepending a $
sign. For example:
Hello $name, your value is $value!
would look like the following:
Hello h4xx0r, your value is 1337!