Flask Red Mail: Email Sending for Flask
Flask extension for Red Mail
What is it?
Flask Red Mail is a Flask extension for Red Mail. Red Mail is a powerful email sender library capable of including attachments from various formats, embedding images, parametrization with Jinja etc. This library harness the power of Red Mail in order to make it trivial to:
- Send verification emails to users
- Create email based forgot password functionality
- Create Flask based email news letters
- Handle other needs for sending emails from a web application
Links:
- Flask-Redmail's source code
- Flask-Redmail's documentation
- Flask-Redmail's releases (PyPI)
- Red Mail's source code
- Red Mail's documentation
- Red Mail's releases (PyPI)
Installation
Install the extension from PyPI:
pip install flask-redmail
Example
Create a simple Flask application:
import flask
from flask_redmail import RedMail
app = flask.Flask(__name__)
email = RedMail(app)
# Configure
app.config["EMAIL_HOST"] = "localhost"
app.config["EMAIL_PORT"] = 0
# Optional
app.config["EMAIL_USERNAME"] = "me@example.com"
app.config["EMAIL_PASSWORD"] = "<PASSWORD>"
app.config["EMAIL_SENDER"] = "no-reply@example.com"
Use the extension:
@app.route("/send")
def send_email():
email.send(
subject="An example",
receivers=["you@example.com"],
html="<h1>An example email.</h1>"
)
Author
- Mikael Koli - Miksus - koli.mikael@gmail.com
Metadata
Release files for Flask-Redmail 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-Redmail-0.3.0.tar.gz | 23.5 kB | Without provenance | Details for Flask-Redmail-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_Redmail-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for Flask_Redmail-0.3.0-py3-none-any.whl |
Total release size: 31.3 kB
Release files / Flask-Redmail-0.3.0.tar.gz
| Download URL | Flask-Redmail-0.3.0.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5869faec2c7355325d6fe08e0e6f2fb54f9bff88706706a4f9fa0bebb8276efe
|
|
BLAKE2b-256 checksum How to use checksums |
eb65082b4db3da3d52063ae744b0818d73e5d67fa51a32202e3429321858ed6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / Flask_Redmail-0.3.0-py3-none-any.whl
| Download URL | Flask_Redmail-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f888866b968264f7afd4329de3ed9d881686eb77ca4389dec7d861837a8477fe
|
|
BLAKE2b-256 checksum How to use checksums |
f68d90cc7ebabe9810d1ecea36c4637f9f1f22bfdb7006c845105350fb615f94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for Flask-Redmail 0.3.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.