Skip to main content

mailgun3_python

Python client for mailgun.

Documentation Status

For detail:

Install

pip install mailgun3_python

Set API KEY from docsumo setting page as env variable MAILGUN_API_KEY & MAILGUN_DOMAIN or pass apikey parameter in Mailgun class.

export MAILGUN_API_KEY="key-c-fgrt456" >>  ~/.bashrc
export MAILGUN_DOMAIN="example.com" >>  ~/.bashrc
source ~/.bashrc

Example

from mailgun import Mailgun

mailgun = Mailgun()

# send email with attachment 
mailgun.send_message("Text, <test@gmail.com>", 
                    "bkrm.dahal@gmail.com", 
                    "Docsumo: Automate invoice data capture at Docsumo", 
                    'Hi, welcome to docsumo.', 
                    files=['./invoice.pdf'])

# send message with saved template
mailgun.send_message_template("Text, <test@gmail.com>", 
                                "bkrm.dahal@gmail.com", 
                                "Docsumo: Automate invoice data capture at Docsumo", 
                                "welcome_email", 
                                {"company_name": "docsumo", "first_name": "bikram"})

Release files for mailgun3-python 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mailgun3-python 0.1.4
File Size Uploaded
mailgun3_python-0.1.4.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mailgun3-python 0.1.4
File Interpreter ABI Platform
mailgun3_python-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / mailgun3_python-0.1.4.tar.gz

Download URL mailgun3_python-0.1.4.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3b14adcc7fca09d63643170e4555d08293e6430c69f65c2aabf1b151c0ab19e5
BLAKE2b-256 checksum
How to use checksums
515c4e578c9b107e74c8401e9c89911fb1161060b0f8acf46bdf43ab6c565c6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.3

Release files / mailgun3_python-0.1.4-py3-none-any.whl

Download URL mailgun3_python-0.1.4-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be751929f205da022c06555bef380784863f5a9c428882c6a28dcceadba528dd
BLAKE2b-256 checksum
How to use checksums
022591e2b0fb42ad3159be3835612bd96453a99f4a363ee47420adce83de430c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page