Flask-Mail
Flask extension for sending email
Decision gist · record as of 2026-08-14
Yes. Flask-Mail is a lightweight, permissive-licensed extension with low install friction and active maintenance. It is the standard choice for email in Flask applications when you need straightforward SMTP integration. Install it if your Flask app needs to send emails and you prefer a simple, Flask-native API over raw SMTP.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a configured SMTP server (local or remote) and valid credentials; Python 3.8 or later.
- Low install friction with only two runtime dependencies (flask and blinker).
- Actively maintained as of June 2026 with recent commits; marked Beta but part of the Pallets Community Ecosystem.
License · maintenance · safety
permissive license (permissive) — Permissive BSD license allows commercial and private use with minimal restrictions.
last release 2024-05-23 (813 days) · last repo commit 2026-06-10 · 642 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,577,307 downloads/mo, #3,745 on PyPI
Alternatives
Verify before relying
pip install flask-mail
from flask import Flask
from flask_mail import Mail, Message
app = Flask(__name__)
app.config['MAIL_SERVER'] = 'smtp.example.com'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USERNAME'] = 'user@example.com'
app.config['MAIL_PASSWORD'] = 'password'
mail = Mail(app)
msg = Message('Subject', recipients=['to@example.com'], body='Body')
mail.send(msg)- Whether the package supports async/background email sending or only synchronous delivery.
- Support for email templates, attachments, or HTML rendering beyond plain text.
- Rate limiting or retry logic for failed sends.
What it is and what it does
Flask-Mail is a Flask extension that wraps SMTP email delivery into a simple, application-integrated interface. It lets you configure mail server credentials once in your Flask config, then send emails by creating Message objects and calling mail.send(). The package handles the SMTP connection lifecycle and integrates with Flask's application context.
It depends on flask for the application framework and blinker for signal support. The extension is maintained by the Pallets Community Ecosystem (the organization behind Flask itself) and remains actively developed. It is classified as Beta but has been in use since 2010, making it a stable choice for straightforward email needs in Flask applications.
Use it for
- Send transactional emails (password resets, account confirmations) from a Flask web application.
- Notify administrators or users of application events (errors, new signups, reports).
- Deliver bulk emails to a mailing list with per-recipient customization.
- Integrate email into Flask request handlers without managing SMTP connections directly.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Flask-Mail is a lightweight, permissive-licensed extension with low install friction and active maintenance. It is the standard choice for email in Flask applications when you need straightforward SMTP integration. Install it if your Flask app needs to send emails and you prefer a simple, Flask-native API over raw SMTP.
Install
flask-mail on PyPI
Before you install
Low install friction with only two runtime dependencies (flask and blinker). Actively maintained as of June 2026 with recent commits; marked Beta but part of the Pallets Community Ecosystem.
Requires a configured SMTP server (local or remote) and valid credentials; Python 3.8 or later.
License in practice
Permissive BSD license allows commercial and private use with minimal restrictions.
Quickstart
pip install flask-mail
from flask import Flask
from flask_mail import Mail, Message
app = Flask(__name__)
app.config['MAIL_SERVER'] = 'smtp.example.com'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USERNAME'] = 'user@example.com'
app.config['MAIL_PASSWORD'] = 'password'
mail = Mail(app)
msg = Message('Subject', recipients=['to@example.com'], body='Body')
mail.send(msg)
Verify before relying
- Whether the package supports async/background email sending or only synchronous delivery.
- Support for email templates, attachments, or HTML rendering beyond plain text.
- Rate limiting or retry logic for failed sends.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesflaskblinker |
| Maintenance | Actively maintained 813 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,577,307 / month, #3,745 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: FlaskLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonTyping :: Typed |
Evidence: flask_mail-0.10.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flask email sending”
- Flask-MailFlask-Mail adds email-sending functionality to Flask applications,…
- mailtrapOfficial Python client for Mailtrap's email sending and testing APIs,…
- repoze-sendmailCouples email sending with Zope transactions, ensuring messages are…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also Flask-Caching · Flask-SQLAlchemy · redmail · django-post_office · dj-email-url · Flask-DebugToolbar · sendsafely · flask-mongoengine · Flask-Security · Flask-Datadog