Omkar Temporary Email offers a convenient solution for receiving temporary emails.
To get started with Omkar Temp Mail install omkar-temp-mail
using the following command:
python -m pip install omkar-temp-mail
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']
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)
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)
deleteMailbox(email)
Deletes the mailbox associated with the provided email address.
from omkar_temp_mail import TempMail
email = "shyam@1secmail.com"
TempMail.deleteMailbox(email)
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)