PyMergeMail


NamePyMergeMail JSON
Version 0.0.1a4 PyPI version JSON
download
home_page
SummaryA simple module to send bulk personalized html mail with jinja2 template
upload_time2023-04-05 16:52:51
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords email html mail merge
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyMergeMail
A simple module to send bulk personalized html mail with jinja2 template
# Installation
```python
pip install PyMergeMail
```
# Usage
```python
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
        )
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "PyMergeMail",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "email,html,mail,merge",
    "author": "",
    "author_email": "Indranil <indranilchowdhury0@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ed/c4/1a43a778b28307ddf7f87e23c74e2ed66697782753218b9b8d0f2471f841/PyMergeMail-0.0.1a4.tar.gz",
    "platform": null,
    "description": "# PyMergeMail\nA simple module to send bulk personalized html mail with jinja2 template\n# Installation\n```python\npip install PyMergeMail\n```\n# Usage\n```python\nimport asyncio\nfrom PyMergeMail import mail\n\nCRED_FILE_PATH = \"key.json\"\nDATA_FILE_PATH = \"source_data.xlsx\"\nSUBJECT_FILE_PATH = \"subject.txt\"\nBODY_FILE_PATH = \"test.html\"\nCID_FIELDS = [\"img_path\", \"sig_path\"]\nATTACH_FIELD = \"attachment\"\n\nasyncio.run(mail(CRED_FILE_PATH,\n                 DATA_FILE_PATH,\n                 SUBJECT_FILE_PATH,\n                 BODY_FILE_PATH,\n                 CID_FIELDS,     # optional\n                 ATTACH_FIELD    # optional\n            ), debug=True\n        )\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A simple module to send bulk personalized html mail with jinja2 template",
    "version": "0.0.1a4",
    "split_keywords": [
        "email",
        "html",
        "mail",
        "merge"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3dfd05be6ce58f9846e83cae6637ea536c573674ee283ab8c7a6be393d6b1d5d",
                "md5": "bab11eb8bd739f28d083601a3e63961d",
                "sha256": "5b58bfaceea072d03a52a54a19b02c341df9a0cd5a6ad6e0ef8df93d1014b0e8"
            },
            "downloads": -1,
            "filename": "PyMergeMail-0.0.1a4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bab11eb8bd739f28d083601a3e63961d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6496,
            "upload_time": "2023-04-05T16:52:50",
            "upload_time_iso_8601": "2023-04-05T16:52:50.134177Z",
            "url": "https://files.pythonhosted.org/packages/3d/fd/05be6ce58f9846e83cae6637ea536c573674ee283ab8c7a6be393d6b1d5d/PyMergeMail-0.0.1a4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "edc41a43a778b28307ddf7f87e23c74e2ed66697782753218b9b8d0f2471f841",
                "md5": "935e82e16fa456d5cc02d106d1a7507e",
                "sha256": "48c5ecd4e887de1d8a50d9456cf47452e03cdd05b77e285e799c22de22787dd1"
            },
            "downloads": -1,
            "filename": "PyMergeMail-0.0.1a4.tar.gz",
            "has_sig": false,
            "md5_digest": "935e82e16fa456d5cc02d106d1a7507e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4512,
            "upload_time": "2023-04-05T16:52:51",
            "upload_time_iso_8601": "2023-04-05T16:52:51.721557Z",
            "url": "https://files.pythonhosted.org/packages/ed/c4/1a43a778b28307ddf7f87e23c74e2ed66697782753218b9b8d0f2471f841/PyMergeMail-0.0.1a4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-05 16:52:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pymergemail"
}
        
Elapsed time: 0.16797s