Skip to main content

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


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)

Uploaded Source

Built Distribution

smtp4dev-0.1.4-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page