A Temp Mail library for python
Project description
A package that allows to create temp mail and receive emails from it.
Example:
from pytempmail import TempMail
from time import sleep
tm=TempMail()
# Print Current Mail
print(f'Email: {tm.email}')
printed_mails=[]
print('All Emails are:')
while True:
all_mails=tm.get_mails()
for mail in all_mails:
if mail.id not in printed_mails:
# Adding to the list, so it will not print it again
printed_mails.append(mail.id)
print(f'From: {mail.from_name} - {mail.from_addr}')
print(f'Subject: {mail.subject}')
print(f'Body: {mail.text}')
# you can use mail.description to print short text
# mail.html returns only html. use it if you're on web
print('\n\- \- \- \- \- END \- \- \- \- \-\n')
sleep(5)
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
temporary-mail-1.5.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for temporary_mail-1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f8dbf66704cb41d9884f0b2817cd0a888f8ba30a0223f2c48857f0449fe46a5 |
|
MD5 | 1e6d0f87668de3291d96912c4c5c6c2b |
|
BLAKE2b-256 | f811cc4d251e445cc115f2371ae1e8bf18d63b5157829b4aa488eed28a0571d7 |