Flask-Mail


NameFlask-Mail JSON
Version 0.10.0 PyPI version JSON
download
home_pageNone
SummaryFlask extension for sending email
upload_time2024-05-23 22:30:12
maintainerNone
docs_urlNone
authorDan Jacob
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Flask-Mail

Flask-Mail is an extension for [Flask] that makes it easy to send emails from
your application. It simplifies the process of integrating email functionality,
allowing you to focus on building great features for your application.

[flask]: https://flask.palletsprojects.com


## Pallets Community Ecosystem

> [!IMPORTANT]\
> This project is part of the Pallets Community Ecosystem. Pallets is the open
> source organization that maintains Flask; Pallets-Eco enables community
> maintenance of related projects. If you are interested in helping maintain
> this project, please reach out on [the Pallets Discord server][discord].

[discord]: https://discord.gg/pallets


## A Simple Example

```python
from flask import Flask
from flask_mail import Mail, Message

app = Flask(__name__)
app.config['MAIL_SERVER'] = 'your_mail_server'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USE_TLS'] = True
app.config['MAIL_USE_SSL'] = False
app.config['MAIL_USERNAME'] = 'your_username'
app.config['MAIL_PASSWORD'] = 'your_password'
app.config['MAIL_DEFAULT_SENDER'] = 'your_email@example.com'

mail = Mail(app)

@app.route('/')
def send_email():
  msg = Message(
    'Hello',
    recipients=['recipient@example.com'],
    body='This is a test email sent from Flask-Mail!'
  )
  mail.send(msg)
  return 'Email sent succesfully!'
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "Flask-Mail",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Pallets Ecosystem <contact@palletsprojects.com>",
    "keywords": null,
    "author": "Dan Jacob",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/ba/29/e92dc84c675d1e8d260d5768eb3fb65c70cbd33addecf424187587bee862/flask_mail-0.10.0.tar.gz",
    "platform": null,
    "description": "# Flask-Mail\n\nFlask-Mail is an extension for [Flask] that makes it easy to send emails from\nyour application. It simplifies the process of integrating email functionality,\nallowing you to focus on building great features for your application.\n\n[flask]: https://flask.palletsprojects.com\n\n\n## Pallets Community Ecosystem\n\n> [!IMPORTANT]\\\n> This project is part of the Pallets Community Ecosystem. Pallets is the open\n> source organization that maintains Flask; Pallets-Eco enables community\n> maintenance of related projects. If you are interested in helping maintain\n> this project, please reach out on [the Pallets Discord server][discord].\n\n[discord]: https://discord.gg/pallets\n\n\n## A Simple Example\n\n```python\nfrom flask import Flask\nfrom flask_mail import Mail, Message\n\napp = Flask(__name__)\napp.config['MAIL_SERVER'] = 'your_mail_server'\napp.config['MAIL_PORT'] = 587\napp.config['MAIL_USE_TLS'] = True\napp.config['MAIL_USE_SSL'] = False\napp.config['MAIL_USERNAME'] = 'your_username'\napp.config['MAIL_PASSWORD'] = 'your_password'\napp.config['MAIL_DEFAULT_SENDER'] = 'your_email@example.com'\n\nmail = Mail(app)\n\n@app.route('/')\ndef send_email():\n  msg = Message(\n    'Hello',\n    recipients=['recipient@example.com'],\n    body='This is a test email sent from Flask-Mail!'\n  )\n  mail.send(msg)\n  return 'Email sent succesfully!'\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Flask extension for sending email",
    "version": "0.10.0",
    "project_urls": {
        "Changes": "https://flask-mail.readthedocs.io/en/latest/changes/",
        "Chat": "https://discord.gg/pallets",
        "Documentation": "https://flask-mail.readthedocs.io",
        "Source": "https://github.com/pallets-eco/flask-mail/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4c0a81083da779f482494d49195d8b6c9fde21072558253e4a9fb2ec969c3c1",
                "md5": "2b443eae0c006baf7d5d0398592b8d1b",
                "sha256": "a451e490931bb3441d9b11ebab6812a16bfa81855792ae1bf9c1e1e22c4e51e7"
            },
            "downloads": -1,
            "filename": "flask_mail-0.10.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2b443eae0c006baf7d5d0398592b8d1b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 8529,
            "upload_time": "2024-05-23T22:30:10",
            "upload_time_iso_8601": "2024-05-23T22:30:10.962706Z",
            "url": "https://files.pythonhosted.org/packages/e4/c0/a81083da779f482494d49195d8b6c9fde21072558253e4a9fb2ec969c3c1/flask_mail-0.10.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ba29e92dc84c675d1e8d260d5768eb3fb65c70cbd33addecf424187587bee862",
                "md5": "3e303fc8203d592c9af3e96ac0f8bbbf",
                "sha256": "44083e7b02bbcce792209c06252f8569dd5a325a7aaa76afe7330422bd97881d"
            },
            "downloads": -1,
            "filename": "flask_mail-0.10.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3e303fc8203d592c9af3e96ac0f8bbbf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8152,
            "upload_time": "2024-05-23T22:30:12",
            "upload_time_iso_8601": "2024-05-23T22:30:12.612415Z",
            "url": "https://files.pythonhosted.org/packages/ba/29/e92dc84c675d1e8d260d5768eb3fb65c70cbd33addecf424187587bee862/flask_mail-0.10.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-23 22:30:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pallets-eco",
    "github_project": "flask-mail",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "flask-mail"
}
        
Elapsed time: 2.51809s