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"})

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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file mailgun3_python-0.1.4.tar.gz.

File metadata

  • Download URL: mailgun3_python-0.1.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mailgun3_python-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3b14adcc7fca09d63643170e4555d08293e6430c69f65c2aabf1b151c0ab19e5
MD5 dcb3cf0f3df35f2f6cf6de828e6f2f77
BLAKE2b-256 515c4e578c9b107e74c8401e9c89911fb1161060b0f8acf46bdf43ab6c565c6f

See more details on using hashes here.

File details

Details for the file mailgun3_python-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: mailgun3_python-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for mailgun3_python-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 be751929f205da022c06555bef380784863f5a9c428882c6a28dcceadba528dd
MD5 5857532aa11c74adc44f2970bc7f3da3
BLAKE2b-256 022591e2b0fb42ad3159be3835612bd96453a99f4a363ee47420adce83de430c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

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