Skip to content

a simple mail.tm library for create mail.tm mail accounts,get avaible domains,get tokens of accounts

Notifications You must be signed in to change notification settings

emrovsky/pymailtm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

mail.tm Python Library

The mailtm library is a simple Python wrapper for interacting with the mail.tm API. It provides easy-to-use functions to create temporary email accounts, retrieve available domains, and obtain tokens for these accounts. This is useful for testing and development purposes where you need temporary email addresses.

Installation

You can install the mailtm.py from repo

Usage

Here's how you can use the mailtm library to perform various actions:

Importing the Library

from mailtm import *

Creating a Temporary Email Account

account = create_account(domain) -> you need to get <domain> value from get_domain()
print(account["mail"])
print(account["password"])

Getting Available Domains

# Get a list of available domain
domain = get_domain()["domain"]
print("Available Domain:", domain)

Getting Tokens for Accounts

# Get a token from a account's username and password
token = get_token_of_account(mail="mail",password="password")
print(token)

Contributing

Contributions are welcome! If you find a bug or want to add a new feature, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.


Disclaimer: This library is designed to interact with the mail.tm service. Use it responsibly and in accordance with the terms of use of the service. The mailtm library and its developers are not responsible for any misuse or violation of terms.

About

a simple mail.tm library for create mail.tm mail accounts,get avaible domains,get tokens of accounts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages