Simple plugin for sending email
Project description
fastack-mail
Simple plugin for sending email.
This plugin is inspired by fastapi-mail
Installation
pip install fastack-mail
Usage
Install plugin
PLUGINS = [
...,
"fastack_mail",
]
Configuration
EMAIL_BACKEND
= "fastack_mail.backend.EmailBackend" [required]EMAIL_HOSTNAME
= SMTP Server (e.g. "localhost") [required]EMAIL_PORT
= SMTP Port Server (e.g. 8025) [required]EMAIL_USERNAME
= SMTP username (e.g. "john@doe.com") [optional]EMAIL_PASSWORD
= SMTP password (e.g. "luarbiasa") [optional]EMAIL_TIMEOUT
= Connection time out (default 60) [optional]EMAIL_USE_TLS
= IfTrue
, make the initial connection to the server over TLS/SSL (default False)EMAIL_START_TLS
= IfTrue
, make the initial connection to the server over plaintext, and then upgrade the connection to TLS/SSL. Not compatible withEMAIL_USE_TLS
. (default False)EMAIL_VALIDATE_CERTS
= Determines if server certificates are validated (default True)EMAIL_CLIENT_CERT
= Path to client side certificate, for TLS verification. (default None)EMAIL_CLIENT_KEY
= Path to client side key, for TLS verification. (default None)EMAIL_CERT_BUNDLE
= Path to certificate bundle, for TLS verification. (default None)EMAIL_ASYNC_MODE
= IfTrue
, theEmailBackend.send
function returns an awaitable object, ifFalse
it returns an immediate send result. (default False)DEFAULT_FROM_EMAIL
= Default sender email for use globally (if there is no sender email) (e.g. "Local <noreply@localhost>")
Example
See here https://github.com/fastack-dev/fastack-mail/tree/main/examples/mail
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastack-mail-0.1.0.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file fastack-mail-0.1.0.tar.gz
.
File metadata
- Download URL: fastack-mail-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5742e193dcabbef7c3b6b4b41f6ae587b812849ad201a3ab5f9b44d258006e |
|
MD5 | 8b4c4f3e649ebb8b59f6c9e7e1693954 |
|
BLAKE2b-256 | 5e6c3daefaceaa21f5ef72f64fe4f68fd9556372ca68f92fe3165c367e71e047 |
File details
Details for the file fastack_mail-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: fastack_mail-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-46-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25ad77b1e43daef625885bf79358f53ef91693d01b50f8c2c56408b6269366ae |
|
MD5 | e77d3cad2c25c761152cdb4f7de04828 |
|
BLAKE2b-256 | 6aabcf14ab1bee668973912f0661e7bfbe39c1bd468d20365cbd2682371d72a8 |