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.6.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file temporary-mail-1.6.tar.gz
.
File metadata
- Download URL: temporary-mail-1.6.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daae51e3a8d79cba30b13557348fb323cbc161fc3df188feb54d2bbf05a04424 |
|
MD5 | f3d457b38ee963550b74087599c39b77 |
|
BLAKE2b-256 | 26880c0a3d7eb148b71ad7f82639d8dbd51b1c9ae396b96b82edfc766b1d40a8 |
File details
Details for the file temporary_mail-1.6-py3-none-any.whl
.
File metadata
- Download URL: temporary_mail-1.6-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b471a51594b5e58ec052c92f95ce7cb9cf2738bbc341049cda95fd813bd9f4a |
|
MD5 | edb959b62470c4ae9fedb156df9d94f0 |
|
BLAKE2b-256 | 79051a1f3942b2425c204bb328aa9065c3f782a24e63e1bcc99c408384fe8cea |