Send email in Flask using the Email-Simplified library.
Project description
Flask-Email-Simplified
Flask-Email-Simplified is a Flask/Quart extension that provides email sending capability using the Email-Simplified library.
Email-Simplified provides a much simpler interface for creating and sending
email messages compared to Python's email and smtplib modules. It also
defines an interface for using other email sending providers that offer an API
other than SMTP.
Install
Install from PyPI:
$ pip install flask-email-simplified
Example
from email_simplified import Message
from flask import Flask
from flask_email_simplified import EmailExtension
app = Flask(__name__)
app.config["EMAIL_HOST"] = "localhost"
app.config["EMAIL_PORT"] = 25
email = EmailExtension(app)
@app.get("/send")
def hello():
message = Message(
subject="Hello",
text="Hello, World!",
to=["world@example.test"],
)
email.send(message)
return "Hello, World!"
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask_email_simplified-0.2.0.tar.gz.
File metadata
- Download URL: flask_email_simplified-0.2.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3258adb4d5253c3c594526c5f1a17ce38a45a966f0fcf853b4b7ae95a902eeac
|
|
| MD5 |
a2448856cf6de3ed0e97d571f2d1118a
|
|
| BLAKE2b-256 |
674947d33060d4c60cc0a390ae994734cf872f3331a1d679305e136da91110e4
|
Provenance
The following attestation bundles were made for flask_email_simplified-0.2.0.tar.gz:
Publisher:
publish.yaml on davidism/flask-email-simplified
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flask_email_simplified-0.2.0.tar.gz -
Subject digest:
3258adb4d5253c3c594526c5f1a17ce38a45a966f0fcf853b4b7ae95a902eeac - Sigstore transparency entry: 171342738
- Sigstore integration time:
-
Permalink:
davidism/flask-email-simplified@ce7a4a1aed9c384209de16ba981c14449f5a9f0a -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/davidism
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@ce7a4a1aed9c384209de16ba981c14449f5a9f0a -
Trigger Event:
push
-
Statement type:
File details
Details for the file flask_email_simplified-0.2.0-py3-none-any.whl.
File metadata
- Download URL: flask_email_simplified-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f46b102fbc8922095191e49c2f94525a74e8bb7de5f35f3bc653ad7a26d02615
|
|
| MD5 |
0ece4d62d474e753def96864be592cd4
|
|
| BLAKE2b-256 |
693de594829b80d04fdde0e37da4ab0c3644c3e589b8ddb32ef717af4d8eab1a
|
Provenance
The following attestation bundles were made for flask_email_simplified-0.2.0-py3-none-any.whl:
Publisher:
publish.yaml on davidism/flask-email-simplified
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flask_email_simplified-0.2.0-py3-none-any.whl -
Subject digest:
f46b102fbc8922095191e49c2f94525a74e8bb7de5f35f3bc653ad7a26d02615 - Sigstore transparency entry: 171342739
- Sigstore integration time:
-
Permalink:
davidism/flask-email-simplified@ce7a4a1aed9c384209de16ba981c14449f5a9f0a -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/davidism
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@ce7a4a1aed9c384209de16ba981c14449f5a9f0a -
Trigger Event:
push
-
Statement type: