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