Pre-release
This release is a pre-release and may not be stable for production use.
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
)
Metadata
Release files for PyMergeMail 0.0.1a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyMergeMail-0.0.1a4.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyMergeMail-0.0.1a4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / PyMergeMail-0.0.1a4.tar.gz
| Download URL | PyMergeMail-0.0.1a4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48c5ecd4e887de1d8a50d9456cf47452e03cdd05b77e285e799c22de22787dd1
|
|
BLAKE2b-256 checksum How to use checksums |
edc41a43a778b28307ddf7f87e23c74e2ed66697782753218b9b8d0f2471f841
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / PyMergeMail-0.0.1a4-py3-none-any.whl
| Download URL | PyMergeMail-0.0.1a4-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b58bfaceea072d03a52a54a19b02c341df9a0cd5a6ad6e0ef8df93d1014b0e8
|
|
BLAKE2b-256 checksum How to use checksums |
3dfd05be6ce58f9846e83cae6637ea536c573674ee283ab8c7a6be393d6b1d5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|