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

mailduylato-0.0.81.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

mailduylato-0.0.81-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mailduylato-0.0.81.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for mailduylato-0.0.81.tar.gz
Algorithm Hash digest
SHA256 076edf6330035d907d5859ed31c80e5cae15e48b4195fecaadf054c916c6225e
MD5 e0ada5c303abf649c0118204d4230703
BLAKE2b-256 e0c4076f044133706ed9a0599f4b543ecbbdd0a76b119123b0a03b34069fb6ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mailduylato-0.0.81-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for mailduylato-0.0.81-py3-none-any.whl
Algorithm Hash digest
SHA256 1b1ff4cb3527655d249043ad1a1f837088f548826d19c404429c741e5bf12403
MD5 1300b40221c8ec671d42bd01fc7c3b6d
BLAKE2b-256 e513eea9591882c62c39f30830f44785cc3bb8fd01648dd6b68741a122a46797

See more details on using hashes here.

Supported by

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