https://github.com/pyapp-org/pyapp.smtp
SMTP Extension
https://github.com/pyapp-org/pyapp.smtp
Last synced: about 1 month ago
JSON representation
SMTP Extension
- Host: GitHub
- URL: https://github.com/pyapp-org/pyapp.smtp
- Owner: pyapp-org
- License: other
- Created: 2019-05-31T00:02:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T13:21:46.000Z (about 7 years ago)
- Last Synced: 2025-03-06T03:15:27.395Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
############
pyApp - SMTP
############
*Let us handle the boring stuff!*
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: http://github.com/ambv/black
:alt: Once you go Black...
.. image:: https://api.codeclimate.com/v1/badges/e25e476cd1cd598e89f4/maintainability
:target: https://codeclimate.com/github/pyapp-org/pyapp.SMTP/maintainability
:alt: Maintainability
.. image:: https://api.codeclimate.com/v1/badges/e25e476cd1cd598e89f4/test_coverage
:target: https://codeclimate.com/github/pyapp-org/pyapp.SMTP/test_coverage
:alt: 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.