A simple module to send bulk personalized html mail with jinja2 template
Project description
PyMergeMail
A simple module to send bulk personalized html mail with jinja2 template
Installation
pip install PyMergeMail
Usage
import asyncio
from PyMergeMail import mail
CRED_FILE_PATH = "key.json"
DATA_FILE_PATH = "source_data.xlsx"
SUBJECT_FILE_PATH = "subject.txt"
BODY_FILE_PATH = "test.html"
CID_FIELDS = ["img_path", "sig_path"]
ATTACH_FIELD = "attachment"
asyncio.run(mail(CRED_FILE_PATH,
DATA_FILE_PATH,
SUBJECT_FILE_PATH,
BODY_FILE_PATH,
CID_FIELDS, # optional
ATTACH_FIELD # optional
), debug=True
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyMergeMail-0.0.1a3.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for PyMergeMail-0.0.1a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9d1e16ab99fb18ac5bbdee45d526dac0775adcd85c938fbb01d6d9fe8805364 |
|
MD5 | aead9267edc1676e33b7875e043e5499 |
|
BLAKE2b-256 | 86e1faaba5af310a25277460949fb9cb56d5aee0538f9b016060b735559a9474 |