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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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