Skip to main content

A python client for Mailgun API v2

Project description

python-mailgun2
===============

A super simple Python API for interacting with [Mailgun](http://www.mailgun.com/).
Currently only supports sending messages. Powered by
[Requests](http://docs.python-requests.org/en/latest/).

Python 3 support should be there but is currently untested.

Usage:

```python
from mailgun2 import Mailgun
mailer = Mailgun('apikey', 'example.mailgun.org')
mailer.send_message(
'from@yourdomain.com',
['to@you.com', 'others@you.com'],
subject='Hi!',
text='Sweet.'
)
```

Optional arguments:

```
subject: string subject of the email
text: string body of the email. Either text or html is required.
html: string HTML of the email. Either text or html is required.
cc: list of cc addresses.
bcc: list of bcc addresses.
tags: list of mailgun tags to associate with the email.
```

Coming soon: attachments, inlines, and all the fancy Mailgun features.

Pull requests welcome!

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

mailgun2-0.1.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file mailgun2-0.1.2.tar.gz.

File metadata

  • Download URL: mailgun2-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mailgun2-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6aaecbb81c192da7ed4d03181918a0635b9c9a8a54c7a9ad8a229fba41ba4430
MD5 c0c9df6a18e28dfd99ce819e761a563b
BLAKE2b-256 490ba0d0b1f1521141aea63eb2b940d230e6e6b26ea711283e39048326168c99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page