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.1.0.tar.gz (4.7 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.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file flask_email_simplified-0.1.0.tar.gz.

File metadata

  • Download URL: flask_email_simplified-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 4e00f612e44656397ed8876e5dd100c6ae064653bc1552c6683b735e75b9069c
MD5 e6464e8cab2544bb49f85e205930869b
BLAKE2b-256 ea65806c5653b53de36bd9910c06c5be95fa853fa3b03d45c2673f9278cd7f7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for flask_email_simplified-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_email_simplified-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69cd9093635103b45c81dfe1423f63c175ac3d5af49f5d5fec9b5e8478d555bf
MD5 4a6b3155a32f1e6b3a5541eb57f80aa6
BLAKE2b-256 e2e66e65281985ac06ef04fdbb6eee433da4d6c36022bd03c2b5c1fd7cde6a71

See more details on using hashes here.

Provenance

The following attestation bundles were made for flask_email_simplified-0.1.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