Skip to main content

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 = If True, make the initial connection to the server over TLS/SSL (default False)
  • EMAIL_START_TLS = If True, make the initial connection to the server over plaintext, and then upgrade the connection to TLS/SSL. Not compatible with EMAIL_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 = If True, the EmailBackend.send function returns an awaitable object, if False 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

Metadata

Release files for fastack-mail 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastack-mail 0.1.0
File Size Uploaded Provenance Actions
fastack-mail-0.1.0.tar.gz 4.7 kB Without provenance Details for fastack-mail-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastack-mail 0.1.0
File Interpreter ABI Platform Actions
fastack_mail-0.1.0-py3-none-any.whl Python 3 none any Details for fastack_mail-0.1.0-py3-none-any.whl

Total release size: 10.0 kB

Release files / fastack-mail-0.1.0.tar.gz

Download URL fastack-mail-0.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4d5742e193dcabbef7c3b6b4b41f6ae587b812849ad201a3ab5f9b44d258006e
BLAKE2b-256 checksum
How to use checksums
5e6c3daefaceaa21f5ef72f64fe4f68fd9556372ca68f92fe3165c367e71e047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-46-generic

Release files / fastack_mail-0.1.0-py3-none-any.whl

Download URL fastack_mail-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25ad77b1e43daef625885bf79358f53ef91693d01b50f8c2c56408b6269366ae
BLAKE2b-256 checksum
How to use checksums
6aabcf14ab1bee668973912f0661e7bfbe39c1bd468d20365cbd2682371d72a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-46-generic

Security for fastack-mail 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page