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.1a2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyMergeMail-0.0.1a2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for PyMergeMail-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 0315e04bfd7d68f247416f453d4f76972bb67ccbfdda8b9478604c30c4b53f9c
MD5 d7ada8b46312692b8583eba9e6164e31
BLAKE2b-256 f69d7f28cc3d615e12c8fd4c48532c198d227fbacf58f174a2058b4272ee86b4

See more details on using hashes here.

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

Hashes for PyMergeMail-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 da6b89585f300ff47d1a3841506d9d5482b676d1377779ef338c6f980abd3131
MD5 4ccb45291d66c00e83ff2abbfe65d4d4
BLAKE2b-256 e612b10ee127fa9fd4a02469a08e3912abe29b70c4b4c13341a652af58517fe8

See more details on using hashes here.

Supported by

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