{"id":14974206,"url":"https://github.com/miksus/flask-redmail","last_synced_at":"2025-07-07T11:14:58.311Z","repository":{"id":43088498,"uuid":"453782334","full_name":"Miksus/flask-redmail","owner":"Miksus","description":"Email sending for Flask","archived":false,"fork":false,"pushed_at":"2022-03-19T08:19:44.000Z","size":92,"stargazers_count":19,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T11:14:55.845Z","etag":null,"topics":["email","flask","redmail"],"latest_commit_sha":null,"homepage":"https://flask-redmail.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Miksus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-30T19:38:36.000Z","updated_at":"2024-06-22T13:43:25.000Z","dependencies_parsed_at":"2022-08-29T16:50:26.173Z","dependency_job_id":null,"html_url":"https://github.com/Miksus/flask-redmail","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Miksus/flask-redmail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fflask-redmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fflask-redmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fflask-redmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fflask-redmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Miksus","download_url":"https://codeload.github.com/Miksus/flask-redmail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fflask-redmail/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264067230,"owners_count":23552160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","flask","redmail"],"created_at":"2024-09-24T13:50:09.440Z","updated_at":"2025-07-07T11:14:58.262Z","avatar_url":"https://github.com/Miksus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Flask Red Mail: Email Sending for Flask\n\u003e Flask extension for Red Mail\n\n---\n\n[![Pypi version](https://badgen.net/pypi/v/flask_redmail)](https://pypi.org/project/flask_redmail/)\n[![build](https://github.com/Miksus/flask-redmail/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/Miksus/flask-redmail/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/Miksus/flask-redmail/branch/master/graph/badge.svg?token=IMR1CQT9PY)](https://codecov.io/gh/Miksus/flask-redmail)\n[![Documentation Status](https://readthedocs.org/projects/flask-redmail/badge/?version=latest)](https://red-mail.readthedocs.io/en/latest/)\n[![PyPI pyversions](https://badgen.net/pypi/python/flask-redmail)](https://pypi.org/project/flask-redmail/)\n\n## What is it?\nFlask Red Mail is a Flask extension for [Red Mail](https://github.com/Miksus/red-mail).\nRed Mail is a powerful email sender library capable of including\nattachments from various formats, embedding images, parametrization\nwith Jinja etc. This library harness the power of Red Mail in order to \nmake it trivial to:\n\n- Send verification emails to users\n- Create email based *forgot password* functionality\n- Create Flask based email news letters\n- Handle other needs for sending emails from a web application\n\nLinks:\n\n- [Flask-Redmail's source code](https://github.com/Miksus/flask-redmail)\n- [Flask-Redmail's documentation](https://flask-redmail.readthedocs.io/)\n- [Flask-Redmail's releases (PyPI)](https://pypi.org/project/Flask-Redmail/)\n- [Red Mail's source code](https://github.com/Miksus/red-mail)\n- [Red Mail's documentation](https://red-mail.readthedocs.io/)\n- [Red Mail's releases (PyPI)](https://pypi.org/project/redmail/)\n\n## Installation\n\nInstall the extension from PyPI:\n\n```console\npip install flask-redmail\n```\n\n## Example\n\nCreate a simple Flask application:\n\n```python\nimport flask\nfrom flask_redmail import RedMail\n\napp = flask.Flask(__name__)\nemail = RedMail(app)\n\n# Configure\napp.config[\"EMAIL_HOST\"] = \"localhost\"\napp.config[\"EMAIL_PORT\"] = 0\n\n# Optional\napp.config[\"EMAIL_USERNAME\"] = \"me@example.com\"\napp.config[\"EMAIL_PASSWORD\"] = \"\u003cPASSWORD\u003e\"\napp.config[\"EMAIL_SENDER\"] = \"no-reply@example.com\"\n```\n\nUse the extension:\n\n```python\n@app.route(\"/send\")\ndef send_email():\n    email.send(\n        subject=\"An example\",\n        receivers=[\"you@example.com\"],\n        html=\"\u003ch1\u003eAn example email.\u003c/h1\u003e\"\n    )\n```\n\n---\n\n## Author\n\n* **Mikael Koli** - [Miksus](https://github.com/Miksus) - koli.mikael@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiksus%2Fflask-redmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiksus%2Fflask-redmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiksus%2Fflask-redmail/lists"}