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 and config - Adapt
message.htmt
and save your contact list tocontacts.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!
With a contacts.csv
looking like:
name | value |
---|---|
h4xx0r | 1337 |