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.1a2.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyMergeMail-0.0.1a2.tar.gz.
File metadata
- Download URL: PyMergeMail-0.0.1a2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0315e04bfd7d68f247416f453d4f76972bb67ccbfdda8b9478604c30c4b53f9c
|
|
| MD5 |
d7ada8b46312692b8583eba9e6164e31
|
|
| BLAKE2b-256 |
f69d7f28cc3d615e12c8fd4c48532c198d227fbacf58f174a2058b4272ee86b4
|
File details
Details for the file PyMergeMail-0.0.1a2-py3-none-any.whl.
File metadata
- Download URL: PyMergeMail-0.0.1a2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da6b89585f300ff47d1a3841506d9d5482b676d1377779ef338c6f980abd3131
|
|
| MD5 |
4ccb45291d66c00e83ff2abbfe65d4d4
|
|
| BLAKE2b-256 |
e612b10ee127fa9fd4a02469a08e3912abe29b70c4b4c13341a652af58517fe8
|