Provides access to emails caught by the SMTP4dev development server
Project description
SMTP4DEV
An abstraction library to access the messages captured by an SMTP4dev instance.
Installation
Install with pip:
pip install smtp4dev
Usage
Example usage:
from smtp4dev import Smtp4Dev
client = Smtp4Dev('http://localhost:8080')
messages = client.list_messages()
email = client.get_message(next(messages))
print(email)
"[From: romeo@email.com To: juliet@email.com Subject: Meeting Friday night]"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smtp4dev-0.1.4.tar.gz
(3.7 kB
view hashes)