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.1a4.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file PyMergeMail-0.0.1a4.tar.gz
.
File metadata
- Download URL: PyMergeMail-0.0.1a4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c5ecd4e887de1d8a50d9456cf47452e03cdd05b77e285e799c22de22787dd1 |
|
MD5 | 935e82e16fa456d5cc02d106d1a7507e |
|
BLAKE2b-256 | edc41a43a778b28307ddf7f87e23c74e2ed66697782753218b9b8d0f2471f841 |
File details
Details for the file PyMergeMail-0.0.1a4-py3-none-any.whl
.
File metadata
- Download URL: PyMergeMail-0.0.1a4-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b58bfaceea072d03a52a54a19b02c341df9a0cd5a6ad6e0ef8df93d1014b0e8 |
|
MD5 | bab11eb8bd739f28d083601a3e63961d |
|
BLAKE2b-256 | 3dfd05be6ce58f9846e83cae6637ea536c573674ee283ab8c7a6be393d6b1d5d |