Send mail through SMTP with Python
Find a file
2022-10-05 11:46:40 +02:00
mail.py Improve templating and use pandas for contacts 2022-10-05 11:46:40 +02:00
README.md Improve templating and use pandas for contacts 2022-10-05 11:46:40 +02:00
vars.py.example initial commit 2020-12-07 15:01:09 +01:00

pymail

Easily send mails via SMTP and python

Setup

  1. Copy vars.py.example to vars.py
  2. Setup vars.py with your credentials
  3. Adapt message.txt and import 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!