{"id":16096864,"url":"https://github.com/miksus/red-mail","last_synced_at":"2025-05-16T02:03:37.123Z","repository":{"id":37980634,"uuid":"443285155","full_name":"Miksus/red-mail","owner":"Miksus","description":"Advanced email sending for Python","archived":false,"fork":false,"pushed_at":"2024-04-18T04:45:17.000Z","size":679,"stargazers_count":405,"open_issues_count":23,"forks_count":31,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-01T11:03:29.742Z","etag":null,"topics":["email","email-sender","python","smtp"],"latest_commit_sha":null,"homepage":"https://red-mail.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":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Miksus"}},"created_at":"2021-12-31T07:31:24.000Z","updated_at":"2025-03-22T19:24:35.000Z","dependencies_parsed_at":"2024-01-16T22:19:55.000Z","dependency_job_id":"8b43191c-e80e-4858-868c-0873ce77c0bf","html_url":"https://github.com/Miksus/red-mail","commit_stats":{"total_commits":258,"total_committers":9,"mean_commits":"28.666666666666668","dds":"0.10465116279069764","last_synced_commit":"8511afc4160723ea0440b6262a61fcb769229d02"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fred-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fred-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fred-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miksus%2Fred-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Miksus","download_url":"https://codeload.github.com/Miksus/red-mail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247838444,"owners_count":21004580,"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","email-sender","python","smtp"],"created_at":"2024-10-09T17:44:05.202Z","updated_at":"2025-04-08T12:09:45.103Z","avatar_url":"https://github.com/Miksus.png","language":"Python","funding_links":["https://github.com/sponsors/Miksus"],"categories":[],"sub_categories":[],"readme":"\n# Red Mail: Advanced Email Sender\n\u003e Next generation email sender\n\n---\n\n[![Pypi version](https://badgen.net/pypi/v/redmail)](https://pypi.org/project/redmail/)\n[![build](https://github.com/Miksus/red-mail/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/Miksus/red-mail/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/Miksus/red-mail/branch/master/graph/badge.svg?token=IMR1CQT9PY)](https://codecov.io/gh/Miksus/red-mail)\n[![Documentation Status](https://readthedocs.org/projects/red-mail/badge/?version=latest)](https://red-mail.readthedocs.io/en/latest/)\n[![PyPI pyversions](https://badgen.net/pypi/python/redmail)](https://pypi.org/project/redmail/)\n\n\n## What is it?\nRed Mail is an advanced email sender library. \nIt is a sister library for [Red Box, advanced email reader](https://github.com/Miksus/red-box).\nIt makes sending emails trivial and has a lot of advanced features such as:\n\n- [Attachments](https://red-mail.readthedocs.io/en/stable/tutorials/attachments.html)\n- [Templating (with Jinja)](https://red-mail.readthedocs.io/en/stable/tutorials/jinja_support.html)\n- [Embedded images](https://red-mail.readthedocs.io/en/stable/tutorials/body_content.html#embedded-images)\n- [Prettified tables](https://red-mail.readthedocs.io/en/stable/tutorials/body_content.html#embedded-tables)\n- [Send as cc or bcc](https://red-mail.readthedocs.io/en/stable/tutorials/sending.html#sending-email-with-cc-and-bcc)\n- [Gmail preconfigured](https://red-mail.readthedocs.io/en/stable/tutorials/config.html#gmail)\n\nSee more from the [documentations](https://red-mail.readthedocs.io)\nor see [release from PyPI](https://pypi.org/project/redmail/).\n\nInstall it from PyPI:\n\n```shell\npip install redmail\n```\n\n## Why Red Mail?\n\nSending emails **SHOULD NOT** be this complicated:\n\n```python\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\nfrom email.mime.text import MIMEText\n\nmsg = MIMEMultipart('alternative')\nmsg['Subject'] = 'An example email'\nmsg['From'] = 'first.last@gmail.com'\nmsg['To'] = 'first.last@example.com'\n\npart1 = MIMEText(\"Hello!\", 'plain')\npart2 = MIMEText(\"\u003ch1\u003eHello!\u003c/h1\u003e\", 'html')\n\nmsg.attach(part1)\nmsg.attach(part2)\n\n# Send the message via our own SMTP server.\ns = smtplib.SMTP('localhost', port=0)\ns.send_message(msg)\ns.quit()\n```\n\nWith Red Mail, it is simple as this:\n\n```python\nfrom redmail import EmailSender\n\nemail = EmailSender(host=\"localhost\", port=0)\n\nemail.send(\n    subject=\"An example email\",\n    sender=\"me@example.com\",\n    receivers=['first.last@example.com'],\n    text=\"Hello!\",\n    html=\"\u003ch1\u003eHello!\u003c/h1\u003e\"\n)\n```\n\nMore examples:\n- [simple example](https://red-mail.readthedocs.io/en/stable/tutorials/example.html#simple-example)\n- [email with attachments](https://red-mail.readthedocs.io/en/stable/tutorials/example.html#attachments)\n- [email with embedded images](https://red-mail.readthedocs.io/en/stable/tutorials/example.html#embedded-images)\n- [email with embedded plots](https://red-mail.readthedocs.io/en/stable/tutorials/example.html#embedded-plots)\n- [email with body parameters](https://red-mail.readthedocs.io/en/stable/tutorials/example.html#parametrization)\n\nSee practical examples from the [cookbook](https://red-mail.readthedocs.io/en/stable/tutorials/cookbook.html).\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%2Fred-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiksus%2Fred-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiksus%2Fred-mail/lists"}