An abstraction library to access the messages captured by an SMTP4dev instance.
Install with pip:
pip install smtp4dev
Example usage:
from smtp4dev import Smtp4Dev
client = Smtp4Dev('http://localhost:8080')
messages = client.list_messages()
email = client.get_message(next(messages))
print(email)
"[From: [email protected] To: [email protected] Subject: Meeting Friday night]"