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
|
2022-10-05 11:46:40 +02:00
|
|
|
```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!
|
|
|
|
```
|