Skip to main content

A temporary email address is: a library that provides email addresses without registration, used to receive incoming emails without disclosing your actual email.

Project description

tmailor

GitHub last commit PyPI - Downloads

A temporary email address that provides email addresses without registration, used to receive incoming emails without disclosing your actual email.

Installation

Recommended installation method is through pip:

pip install tmailor

Alternatively, you can clone the repository and install it manually:

git clone https://github.com/heromr/tmailor.git
  cd tmailor
  python setup.py install

Client Class Usage

from tmailor import Client

# Create an instance of the Client class
client = Client()

# Generate a random email address
random_email = client.generate_random_email()
print("Random Email Address:", random_email.email)

# Generate a custom email address
custom_email = client.generate_custom_email("john", "example.com")
print("Custom Email Address:", custom_email.email)

# Delete an email address
response = client.delete_email(random_email.email, random_email.token)
print("Deletion Response:", response)

# Get messages for an email address
messages = client.get_messages(random_email.email)
for message in messages.messages:
    print("Subject:", message.subject)
    print("Sender:", message.sender)
    print("Content:", message.body_text)
    print()

# Get a list of available domains
domains = client.get_domains()
for domain in domains.name:
    print("Domain:", domain)
  

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

tmailor-0.0.12.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

tmailor-0.0.12-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file tmailor-0.0.12.tar.gz.

File metadata

  • Download URL: tmailor-0.0.12.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for tmailor-0.0.12.tar.gz
Algorithm Hash digest
SHA256 99fcb91b1affcbb26e96c0dd9d74de524ae85c3b769d7683fdfcc48eb5496c38
MD5 0e76d1227218d2e3b45aed5ae6d0332a
BLAKE2b-256 e2d6538edeb18b2d7c987862bf05bb1134dee071a0e1bf21a4dc0e789da8d1f0

See more details on using hashes here.

File details

Details for the file tmailor-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: tmailor-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for tmailor-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 afc82fa97cdbe68f373aadfdfb0756e565e3eed9efe623b9b7fee0f9dda04428
MD5 574e2ce934e3096f75579993fd541c22
BLAKE2b-256 8cc7d3f864837bd3ef23e5bb9fb10277436f9cb9ecb9428a30f57972d195eb42

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