Skip to main content

SMTP Extension for pyApp

Project description

Let us handle the boring stuff!

Once you go Black...

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 pae.smtp into the EXT list in your applications default_settings.py.

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 pae.smtp import get_client

smtp = get_client()

API

pae.smtp.get_client() -> SMTP

Get named SMTP instance.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyApp-SMTP, version 1.0b1
Filename, size File type Python version Upload date Hashes
Filename, size pyApp_SMTP-1.0b1-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyApp-SMTP-1.0b1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page