Send mail through SMTP with Python
Go to file
2023-09-29 20:20:45 +02:00
.gitignore Add venv to gitignore 2023-09-29 20:20:35 +02:00
mail.py Add logging and more options 2023-04-23 13:28:51 +02:00
README.md Add more info 2022-10-09 19:17:19 +02:00
requirements.txt Add requirements 2023-09-29 20:20:45 +02:00
vars.py.example Fix name 2023-04-23 13:28:58 +02: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 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