Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

PyMergeMail-0.0.1a4-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page