Skip to main content

Python wrapper to access Gmailnator programmatically

Project description

Python wrapper to access Gmailnator programmatically


What is Gmailnator?

Gmailnator is a free service that allows getting instant temporary email it is also known as “tempmail”, “10 minute mail”, “throw away mail”, “disposable mail”, fake email, and “trash mail”. It is used to prevent spam into your personal email address. Most of the sites require to register in order to view content, post comments,or download files like forums, blogs, public WI-FI spots, etc. you can use gmailnator to get instant email without using your real email address.

Gmailnator is the most advanced temporary email service on the web because it offers you to use a Gmail email address in which other temp mail providers are not supported.


Warning

Never use temporary mail for important information. It is a public email and can be accessed by anyone and your mail address is only temporary. Gmailnator email messages are auto-deleted after 24 hours and has a 7 Days Backup of all Emails.


Example

import gmailnator

csrf_token, email = gmailnator.generate_email()
print(f'Email: {email}')
print(f'Token: {csrf_token}')
input('Send email, wait a few minutes to ensure that it has been received then press enter to continue...')
emails = gmailnator.check_emails(csrf_token, email)
print(f'Got {len(emails)} emails')
for mail in emails:
    print(f'Subject: {mail["subject"]}')
    print(f'Body: {mail["body"]}')
    print(f'Link: {mail["link"]}')
    print(f'Time: {mail["time"]}')
    print(f'Full body: {gmailnator.get_message(mail["link"], csrf_token)}')

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

gmailnator.py-1.0.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file gmailnator.py-1.0.2.tar.gz.

File metadata

  • Download URL: gmailnator.py-1.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for gmailnator.py-1.0.2.tar.gz
Algorithm Hash digest
SHA256 216fd4030192976cb864b519d221dca38f9c998e9d5bb6b9435f8cd3b5208a53
MD5 82b054bd136aa8de7d60b424cdbdda88
BLAKE2b-256 2beecfee0a17d077a661cf902774ebe7b5914dd4fcf8a08e106002801fceb02e

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