Skip to main content

Temporary Email

Project description

MailTM API Wrapper

MailTm is a free temporary mail service, This library is useful for automation tasks such as making accounts that needs email verification.

Installation

Windows:

pip install MailTm

Linux/Mac OS:

pip3 install MailTm

Example

from mailtm import Email

def listener(message):
    print("\nSubject: " + message['subject'])
    print("Content: " + message['text'] if message['text'] else message['html'])

# Get Domains
test = Email()
print("\nDomain: " + test.domain)

# Make new email address
test.register()
print("\nEmail Adress: " + str(test.address))

# Start listening
test.start(listener)
print("\nWaiting for new emails...")

Documentation

API: https://mail.tm

register(username=None, password=None, domain=None) | Make an email account with random credentials, You can also pass a username, password and domain to use the same account.

start(listener, interval=3) | Start listening for new emails, Interval means how many seconds takes to sync, And you also need to pass a function for listener, This function gets called when new email arrive.

stop() | Stop listening for new emails.

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

MailTm-0.0.81.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

MailTm-0.0.81-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file MailTm-0.0.81.tar.gz.

File metadata

  • Download URL: MailTm-0.0.81.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for MailTm-0.0.81.tar.gz
Algorithm Hash digest
SHA256 fff73ebe582b21a5d91448bbb86dec9affb3e9c967a10874d7847b2f92407d53
MD5 ac002f93a73d62d96a2aa2f6e6945bff
BLAKE2b-256 5d96d2dfef6f612e3c4d91f15a9ee2de2c270a027bbadc63a11d2e4e9df6c939

See more details on using hashes here.

File details

Details for the file MailTm-0.0.81-py3-none-any.whl.

File metadata

  • Download URL: MailTm-0.0.81-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for MailTm-0.0.81-py3-none-any.whl
Algorithm Hash digest
SHA256 87dcd126b3ed115811e12a378105e80c78cf105e52136a48ce78929decca4e6d
MD5 84603c2bbfb17db8e39cdaed84024981
BLAKE2b-256 0219f532ee955a4b039ff2f7a656640c73f0d448d7084926c3fbf491dcdf0520

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