🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

smtp4dev

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtp4dev

Provides access to emails caught by the SMTP4dev development server

0.1.4
Maintainers
1

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]"

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts