Send mail through SMTP with Python
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jannis Portmann bbe48d2c38 Add more info 6 months ago
.gitignore Add ignores 6 months ago
README.md Add more info 6 months ago
mail.py Parameterize everything 6 months ago
vars.py.example Parameterize everything 6 months ago

README.md

pymail

Easily send mails via SMTP and python

Setup

  1. Copy vars.py.example to vars.py
  2. Setup vars.py with your credentials and config
  3. Adapt message.htmt and save your contact list to contacts.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