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('
-
-
-
-
- END - - - - - ') 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.4.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for temporary_mail-1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6489e2f04e56a219b5f78226a176f033995d7ab65f68710285a9a7de7e3af48 |
|
MD5 | a7e3c48b43897918af9b56a2b0d8b7a7 |
|
BLAKE2b-256 | 2b3acd7066083b9e36a47978bc54e1052818a2aacb3c49f69cb2d5694f262327 |