Skip to main content

Use Omkar Temporary for receiving temporary emails

Project description

Omkar Temporary Mail provides a convenient solution for receiving temporary emails. It is particularly useful for automated tasks that require email verification during account creation.

Getting Started

To get started with Omkar Temp Mail install omkar-temp-mail using the following command:

python -m pip install omkar-temp-mail

Usage

  1. get_domains

Returns a list of available domain options for generating temporary email addresses.

from omkar_temp_mail import TempMail

domains = TempMail.get_domains()
print(domains) # prints ['1secmail.com', '1secmail.org', '1secmail.net', 'kzccv.com', 'qiott.com', 'wuuvo.com', 'icznn.com', 'ezztt.com']
  1. get_email_link(email)

Get’s the first link from the most recent email message received in the given email address.

from omkar_temp_mail import TempMail

email = "shyam@1secmail.com"
link = TempMail.get_email_link(email)
print(link)
  1. get_body(email)

Get’s the content (text or HTML) from the most recent email message received in the given email address.

from omkar_temp_mail import TempMail

email = "shyam@1secmail.com"
body = TempMail.get_body(email)
print(body)
  1. deleteMailbox(email)

Deletes the mailbox associated with the provided email address.

from omkar_temp_mail import TempMail

email = "shyam@1secmail.com"
TempMail.deleteMailbox(email)
  1. get_email_link_and_delete_mailbox(email)

Combines the functionality of get_email_link and deleteMailbox(email). It first retrieves the first link from the most recent email and then deletes the mailbox, returning the link.

from omkar_temp_mail import TempMail

email = "shyam@1secmail.com"
link = TempMail.get_email_link_and_delete_mailbox(email)
print("Link:", link)

If my code helped you in generating Temporary Email, please take a moment to star the repository. Your act of starring will help developers in discovering our Repository and contribute towards helping fellow developers in their automation tasks. Dhanyawad 🙏! Vande Mataram!

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

omkar_temp_mail-1.1.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file omkar_temp_mail-1.1.0.tar.gz.

File metadata

  • Download URL: omkar_temp_mail-1.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for omkar_temp_mail-1.1.0.tar.gz
Algorithm Hash digest
SHA256 93ce0ef1ae603cb766b752df5a5fbed5c1be852a3c3a77a5a35b967dff406fa2
MD5 ec690cf800c44c4415da5561748847f4
BLAKE2b-256 2b07247cdf1f171261235bdc1573fb4e2d58e4ab8f24594c4b2fbf59021339d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page