Flask mail system sending mails(individual, bulk) attachments(individual, bulk) fully asynchroniously
Project description
✉️ Flask-Mailing
Flask-Mailing adds SMTP mail sending to your Flask applications
Flask_Mail is dead now. This is the time to migrate a fully asynchronous based mailer library to send emails while using a Flask based application. Now Flask 2.0 supports the asynchronous view function then who is stopping you to use Flask-Mailing ?
The key features are:
- Most of the Apis are very similar to
Flask-Mail
module. - sending emails with either with Flask or using asyncio module
- sending files either from form-data or files from server
- Using Jinja2 HTML Templates
- email utils (utility allows you to check temporary email addresses, you can block any email or domain)
- email utils has two available classes
DefaultChecker
andWhoIsXmlApi
- Unittests using Mail
More information on Getting-Started
📥 Downloads
🚑 Package health score by snyk.io
🔗 Important Links
❤️ Github
📄 Documentation
🐍 PYPI
🔨 Installation
pip install flask-mailing
or install from source code
git clone https://github.com/marktennyson/flask-mailing.git && cd flask-mailing
python -m pip install .
🦮 Guide
from flask import Flask, jsonify
from flask_mailing import Mail, Message
app = Flask(__name__)
app.config['MAIL_USERNAME'] = "YourUserName"
app.config['MAIL_PASSWORD'] = "strong_password"
app.config['MAIL_PORT'] = 587
app.config['MAIL_SERVER'] = "your mail server"
app.config['MAIL_USE_TLS'] = True
app.config['MAIL_USE_SSL'] = False
app.config['USE_CREDENTIALS'] = True
app.config['VALIDATE_CERTS'] = True
app.config['MAIL_DEFAULT_SENDER'] = "youremailid@doaminname.com"
mail = Mail(app)
html = """
<p>Thanks for using Flask-Mailing</p>
"""
@app.post("/email")
async def simple_send():
message = Message(
subject="Flask-Mailing module",
recipients=["recipients@email-domain.com"], # List of recipients, as many as you can pass
body=html,
subtype="html"
)
await mail.send_message(message)
return jsonify(status_code=200, content={"message": "email has been sent"})
🪜 List of Examples
For more examples of using flask-mailing please check example section
👍 Contributing
Feel free to open issues and send pull requests.
😀 Contributors ✨
Thanks goes to these wonderful people ([🚧]):
Aniket Sarkar 💬 👀 🚧 |
Joshua Kinslow |
Alexandre Gramfort |
ahmetkurukose |
This project follows the all-contributors specification. Contributions of any kind are welcome!
Before you start please read CONTRIBUTING
📝 LICENSE
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 Distributions
File details
Details for the file Flask-Mailing-0.2.1.tar.gz
.
File metadata
- Download URL: Flask-Mailing-0.2.1.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af3d00b1872c6e534ca9aea59e15ea7c7b9ffc8f50f4404b2aeee7617786a8d |
|
MD5 | 570ddf14c4db2ee9b9da2cc732f519dc |
|
BLAKE2b-256 | bde478b01b2761a55bbe3451b3969e672bfc2f5f5da9badb59f38e55f75e2814 |
File details
Details for the file Flask_Mailing-0.2.1-py3.11.egg
.
File metadata
- Download URL: Flask_Mailing-0.2.1-py3.11.egg
- Upload date:
- Size: 46.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 123d3b3e858c2e47d63a5b1a078f5ef4f83437e0e79ec06e61efc9dd3c6386ab |
|
MD5 | 604cf9ff1662356c0504e5a99d9d9e80 |
|
BLAKE2b-256 | 8e33fb6053ba6adace7a58d53908cb6e82f2b583564b8556f3f0b83b8a417425 |
File details
Details for the file Flask_Mailing-0.2.1-py3.10.egg
.
File metadata
- Download URL: Flask_Mailing-0.2.1-py3.10.egg
- Upload date:
- Size: 38.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd8da3b213cf75a580c56bec34765b8e61b87e5ec65e8dafb94e8be7e3f96668 |
|
MD5 | be99c14b16f380da668622d2cd326ce6 |
|
BLAKE2b-256 | bf66191205175be09ef3c48bc578a9a73bf4bf6a85469cf1dc9013ebb399481a |
File details
Details for the file Flask_Mailing-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: Flask_Mailing-0.2.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b09ded21661a7d67904fd939a3eba09f3a5e10348d9479c7c1180e55034f2f |
|
MD5 | bf28aab6c5eeccd67cf7db70a6300def |
|
BLAKE2b-256 | 3c563c8ce2c41f69f47802bae7189ae63a3ce9245443872d4aec1b549d9a15f2 |