Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_email_simplified-0.2.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_email_simplified-0.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for flask_email_simplified-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3258adb4d5253c3c594526c5f1a17ce38a45a966f0fcf853b4b7ae95a902eeac
MD5 a2448856cf6de3ed0e97d571f2d1118a
BLAKE2b-256 674947d33060d4c60cc0a390ae994734cf872f3331a1d679305e136da91110e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for flask_email_simplified-0.2.0.tar.gz:

Publisher: publish.yaml on davidism/flask-email-simplified

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flask_email_simplified-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_email_simplified-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f46b102fbc8922095191e49c2f94525a74e8bb7de5f35f3bc653ad7a26d02615
MD5 0ece4d62d474e753def96864be592cd4
BLAKE2b-256 693de594829b80d04fdde0e37da4ab0c3644c3e589b8ddb32ef717af4d8eab1a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page