Skip to main content

takeme-mailgun

This module provides wrapper for Mailgun APIs.

Installation

pip install takeme-mailgun

Usage

import takeme_mailgun

API_KEY = 'xxxxxxxxxxxx'
DOMAIN = 'xxx.abc.jp'
EMAIL = 'hr@abc.jp'
MAIL_FROM = 'from@abc.jp'
MAIL_SUBJECT = 'Test Mail'
MAIL_BODY = 'Hello World'    

mailgun = takeme_mailgun.Mailgun(DOMAIN, API_KEY)
mailgun.mail_from = MAIL_FROM
if mailgun.is_valid(EMAIL):
    mailgun.messages(EMAIL, MAIL_SUBJECT, '', MAIL_BODY)
else:
    print('[{}] is an ivalid email.'.format(EMAIL))

if mailgun.is_delivered(EMAIL):
    print('[{}] is delivered successfully.'.format(EMAIL))

Metadata

Release files for takeme-mailgun 1.0.8

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

Source distribution (sdist)

Source distribution for takeme-mailgun 1.0.8
File Size Uploaded Provenance Actions
takeme_mailgun-1.0.8.tar.gz 3.0 kB Without provenance Details for takeme_mailgun-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for takeme-mailgun 1.0.8
File Interpreter ABI Platform Actions
takeme_mailgun-1.0.8-py3-none-any.whl Python 3 none any Details for takeme_mailgun-1.0.8-py3-none-any.whl

Total release size: 18.5 kB

Release files / takeme_mailgun-1.0.8.tar.gz

Download URL takeme_mailgun-1.0.8.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9fa3f3310b64af123e1aaf6f5580cbb8f2934a7e550a151dceac6cfebcc8126c
BLAKE2b-256 checksum
How to use checksums
ff646c7d890367db5896486ab65ee1604764334e9681ca0392064a23f4cdc511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

Release files / takeme_mailgun-1.0.8-py3-none-any.whl

Download URL takeme_mailgun-1.0.8-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c86040f780cb941ab87fe631e5b9b05b474a125708c388fc479505d5dc0d6d4
BLAKE2b-256 checksum
How to use checksums
c509145a1e57d3f3a01c077591a416a1010e79a12c3a4bf0ce9dd13641003e61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

Security for takeme-mailgun 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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