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.

Source Distribution

mailgun3_python-0.1.4.tar.gz (4.9 kB view hashes)

Uploaded source

Built Distribution

mailgun3_python-0.1.4-py3-none-any.whl (6.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page