Skip to main content

A Client to easily interact with the MailTM API

Project description

MailTMClient

I would like to bring to your attention the user-friendly MailTMClient package, specifically designed to facilitate seamless communication with the mail.tm API. With its comprehensive set of functions, it emerges as the only Python-based solution out there that fully embraces all the API's offerings. We hope this information will prove useful to you. My mail.tm console client is based on the MailTMClient and in the source code of its main.py file you can see the ease of use of MailTMclient from an example.

Registering a new Account and logging in

Using the code below, a new account can be created.

from MailTMClient import MailTMClient
(responseCode, response) = MailTMClient().register(args.address, args.password)
    if responseCode == 0:
        print("[i] Successfully created an MailTM Account!")
        saveTokenToFile(response)
    if responseCode != 0:
        print("[!] Failed to create an MailTM Account! (" + str(response) + ")")

Following a successful account creation, the response variable will contain the tokens required for future application access. In order to log in to an existing account, please proceed accordingly.

(responseCode, response) =  MailTMClient().login(args.address, args.password)

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

MailTMClient-0.0.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

MailTMClient-0.0.5-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file MailTMClient-0.0.5.tar.gz.

File metadata

  • Download URL: MailTMClient-0.0.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for MailTMClient-0.0.5.tar.gz
Algorithm Hash digest
SHA256 73f67820c2693f914c9d56fbed21017673a0a3f1d572696d45d393eb3eb378d4
MD5 92052d8d5ee338184c731c4ad902dd07
BLAKE2b-256 ebc8acdf9de6fb8170308059d681dd3238ef220ba7bb15c57542b14b3d048498

See more details on using hashes here.

File details

Details for the file MailTMClient-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: MailTMClient-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for MailTMClient-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0781f877bf4c94184d396ea31c4b56cd00111957d9060a3e0a8c654c22034d73
MD5 d4183a393fc6ff462fc9c7553e358be1
BLAKE2b-256 bbb7dd4e2ecbc407627602ba321e2fcd30232c5ffccc8c75ea34cfcfdf2a6821

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