Skip to main content

Mailgun client for python

Project description


Python client for mailgun.

Documentation Status

For detail:


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="" >>  ~/.bashrc
source ~/.bashrc


from mailgun import Mailgun

mailgun = Mailgun()

# send email with attachment 
mailgun.send_message("Text, <>", 
                    "Docsumo: Automate invoice data capture at Docsumo", 
                    'Hi, welcome to docsumo.', 

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mailgun3-python, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size mailgun3_python-0.1.4-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mailgun3_python-0.1.4.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page