fake-email
A simple library project, a library function to make a temporary email, receive all messages
Installation :
pip install fake-email
Example
# by ruks
from fake_email import Email
# Show email
mail = Email()
print(mail)
# fetch the message
while True:
if mail.new_message():
print(mail.get_message())
The result
[
{
"read": false,
"expanded": false,
"forwarded": false,
"repliedTo": false,
"sentDate": "2021-05-10T07:32:41.000+0000",
"sentDateFormatted": "May 10, 2021, 7:32:41 AM",
"sender": "[email protected]",
"from": "[Ljavax.mail.internet.InternetAddress;@37e8c463",
"subject": "Test message",
"bodyPlainText": "",
"bodyHtmlContent": "mas",
"bodyPreview": "Test description\r\n",
"id": "2118940165622869807"
}
]