Skip to content
SMTP Extension
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pyapp_ext/smtp
tests
.gitignore
.travis.yml
LICENSE
README.rst
setup.cfg
setup.py

README.rst

pyApp - SMTP

Let us handle the boring stuff!

Once you go Black... Maintainability Test Coverage

This extension provides an SMTP client object configured via pyApp settings.

Installation

Install using pip:

pip install pyApp-SMTP

Install using pipenv:

pip install pyApp-SMTP

Add the SMTP block into your runtime settings file:

SMTP = {
    "default": {
        "host": "localhost",
    }
}

Note

In addition to the host any argument that can be provided to smtplib.SMTP can be provided.

Usage

The following example creates an SMTP client instance:

from pyapp_ext.smtp import get_client

smtp = get_client()

API

pyapp_ext.smtp.get_client() -> SMTP

Get named SMTP instance.
You can’t perform that action at this time.