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.
Metadata
Release files for MailTm 0.0.81
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| MailTm-0.0.81.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MailTm-0.0.81-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / MailTm-0.0.81.tar.gz
| Download URL | MailTm-0.0.81.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fff73ebe582b21a5d91448bbb86dec9affb3e9c967a10874d7847b2f92407d53
|
|
BLAKE2b-256 checksum How to use checksums |
5d96d2dfef6f612e3c4d91f15a9ee2de2c270a027bbadc63a11d2e4e9df6c939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
|
Release files / MailTm-0.0.81-py3-none-any.whl
| Download URL | MailTm-0.0.81-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87dcd126b3ed115811e12a378105e80c78cf105e52136a48ce78929decca4e6d
|
|
BLAKE2b-256 checksum How to use checksums |
0219f532ee955a4b039ff2f7a656640c73f0d448d7084926c3fbf491dcdf0520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
|
Security for MailTm 0.0.81
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.