{
  "id": "task_libraries:email/python",
  "path": "/exapedia/python-email-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python email libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python email libraries send messages through an SMTP server or an email provider's HTTP API. A provider SDK sends each message as an API request rather than through an SMTP connection to a mail server. These libraries let apps send sign-up confirmations, password resets, and receipts."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python email libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#botothree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sendgrid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#resend",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aiosmtplib",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django-anymail",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#azure-communication-email",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flask-mail-library",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F276"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#sendgrid",
          "label": [
            {
              "t": "text",
              "text": "SendGrid"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads among the dedicated email libraries in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F183"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "SMTP transport",
            "Native async send"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#botothree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sendgrid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#resend",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aiosmtplib",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django-anymail",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#azure-communication-email",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flask-mail-library",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F276"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "botothree",
          "name": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/boto/boto3"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/boto3"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/boto/boto3",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import boto3\n\nses = boto3.client(\"sesv2\", region_name=\"us-east-1\")\nresponse = ses.send_email(\n    FromEmailAddress=\"sender@example.com\",\n    Destination={\"ToAddresses\": [\"recipient@example.com\"]},\n    Content={\"Simple\": {\"Subject\": {\"Data\": \"Hello\"},\n                        \"Body\": {\"Text\": {\"Data\": \"Hello from SES\"}}}},\n)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sesv2/client/send_email.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "send_email.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=boto3%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "django",
          "name": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/django/django"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/django"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F169"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/django/django",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/wagtail/wagtail",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def send_mail(subject, message, recipient_list, from_email=None, **kwargs):\n    \"\"\"\n    Wrapper around Django's EmailMultiAlternatives as done in send_mail().\n    Custom from_email handling and special Auto-Submitted header.\n    \"\"\"\n    if not from_email:\n        if hasattr(settings, \"WAGTAILADMIN_NOTIFICATION_FROM_EMAIL\"):\n            from_email = settings.WAGTAILADMIN_NOTIFICATION_FROM_EMAIL\n        elif hasattr(settings, \"DEFAULT_FROM_EMAIL\"):\n            from_email = settings.DEFAULT_FROM_EMAIL\n        else:\n            # We are no longer using the term `webmaster` except in this case, where we continue to match Django's default: https://github.com/django/django/blob/stable/3.2.x/django/conf/global_settings.py#L223\n            from_email = \"webmaster@localhost\"\n\n    using = kwargs.get(\"using\")\n    connection = kwargs.get(\"connection\")\n\n    if not connection:\n        # Only pass the arguments that have been given. On Django 6.1 and above these\n        # are applied on top of the mailer configuration, so passing None would replace\n        # the configured username and password, leaving the backend unauthenticated.\n        connection_kwargs = {}\n        if kwargs.get(\"auth_user\") is not None:\n            connection_kwargs[\"username\"] = kwargs[\"auth_user\"]\n        if kwargs.get(\"auth_password\") is not None:\n            connection_kwargs[\"password\"] = kwargs[\"auth_password\"]\n        if kwargs.get(\"fail_silently\"):\n            connection_kwargs[\"fail_silently\"] = kwargs[\"fail_silently\"]\n\n        if DJANGO_VERSION >= (6, 1) and not connection_kwargs:\n            connection = mailers.default if using is None else mailers[using]\n        else:\n            connection = get_connection(**connection_kwargs)\n\n    multi_alt_kwargs = {\n        \"headers\": {\n            \"Auto-Submitted\": \"auto-generated\",\n        },\n        \"bcc\": kwargs.get(\"bcc\", None),\n        \"cc\": kwargs.get(\"cc\", None),\n        \"reply_to\": kwargs.get(\"reply_to\", None),\n    }\n    mail = EmailMultiAlternatives(\n        subject, message, from_email, recipient_list, **multi_alt_kwargs\n    )\n    html_message = kwargs.get(\"html_message\", None)\n    if html_message:\n        mail.attach_alternative(html_message, \"text/html\")\n\n    if not mail.recipients():\n        return 0\n    return connection.send_messages([mail])\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/wagtail/wagtail/blob/11a50f61147218b6c940319a6911febd3434e522/wagtail/admin/mail.py#L47-L98",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=django%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from django.core.mail import send_mail\n\nsend_mail(\n    \"Subject here\",\n    \"Here is the message.\",\n    \"from@example.com\",\n    [\"to@example.com\"],\n)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/django/django/blob/6.1.3/docs/topics/email.txt",
                  "label": [
                    {
                      "t": "text",
                      "text": "email.txt"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sendgrid",
          "name": [
            {
              "t": "fact",
              "fact": "F182"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sendgrid/sendgrid-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/sendgrid"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/sendgrid/sendgrid-python",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F182"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/home-assistant/core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def send_message(self, message: str = \"\", **kwargs: Any) -> None:\n        \"\"\"Send an email to a user via SendGrid.\"\"\"\n        subject = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)\n\n        data = {\n            \"personalizations\": [\n                {\"to\": [{\"email\": self.recipient}], \"subject\": subject}\n            ],\n            \"from\": {\"email\": self.sender, \"name\": self.sender_name},\n            \"content\": [{\"type\": CONTENT_TYPE_TEXT_PLAIN, \"value\": message}],\n        }\n\n        response = self._sg.client.mail.send.post(request_body=data)\n        if response.status_code != HTTPStatus.ACCEPTED:\n            _LOGGER.error(\"Unable to send notification\")\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/home-assistant/core/blob/8dbdb49d1e2f8107688ec45257dc8ab68fd5a01f/homeassistant/components/sendgrid/notify.py#L64-L78",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F198"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sendgrid%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F182"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import os\nfrom sendgrid import SendGridAPIClient\nfrom sendgrid.helpers.mail import Mail\n\nclient = SendGridAPIClient(os.environ[\"SENDGRID_API_KEY\"])\nresponse = client.send(Mail(\n    from_email=\"from@example.com\", to_emails=\"to@example.com\",\n    subject=\"Hello\", html_content=\"<strong>Hello from SendGrid</strong>\",\n))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pypi.org/pypi/sendgrid/6.12.5/json#info.description",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F187"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "resend",
          "name": [
            {
              "t": "fact",
              "fact": "F201"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/resend/resend-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/resend"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/resend/resend-python",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F201"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/airweave-ai/airweave",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _send_email_via_resend_sync(\n    to_email: str,\n    subject: str,\n    html_body: str,\n    from_email: Optional[str] = None,\n    scheduled_at: Optional[str] = None,\n) -> None:\n    \"\"\"Synchronous email sending function via Resend to be run in a thread pool.\n\n    Args:\n    ----\n        to_email (str): Recipient email address\n        subject (str): Email subject line\n        html_body (str): HTML email body\n        from_email (Optional[str]): Sender email (defaults to settings.RESEND_FROM_EMAIL)\n        scheduled_at (Optional[str]): ISO 8601 timestamp for scheduled delivery\n\n    \"\"\"\n    resend.api_key = settings.RESEND_API_KEY\n\n    email_data = {\n        \"from\": from_email or settings.RESEND_FROM_EMAIL,\n        \"to\": [to_email],\n        \"subject\": subject,\n        \"html\": html_body,\n    }\n\n    if scheduled_at:\n        email_data[\"scheduled_at\"] = scheduled_at\n\n    resend.Emails.send(email_data)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/airweave-ai/airweave/blob/1ebe1af2dbfb90f3334410721e69997e4f02b320/backend/airweave/email/services.py#L38-L68",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F218"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=resend%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F201"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import os\nimport resend\n\nresend.api_key = os.environ[\"RESEND_API_KEY\"]\nemail = resend.Emails.send({\n    \"from\": \"onboarding@resend.dev\", \"to\": [\"delivered@resend.dev\"],\n    \"subject\": \"Hello\", \"html\": \"<strong>Hello</strong>\",\n})\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/resend/resend-python",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "aiosmtplib",
          "name": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cole/aiosmtplib"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/aiosmtplib"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/cole/aiosmtplib",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F221"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/sabuhish/fastapi-mail",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "async def _configure_connection(self) -> None:\n        try:\n            self.session = aiosmtplib.SMTP(\n                hostname=self.settings.MAIL_SERVER,\n                timeout=self.settings.TIMEOUT,\n                port=self.settings.MAIL_PORT,\n                use_tls=self.settings.MAIL_SSL_TLS,\n                start_tls=self.settings.MAIL_STARTTLS,\n                validate_certs=self.settings.VALIDATE_CERTS,\n                local_hostname=self.settings.LOCAL_HOSTNAME,\n                cert_bundle=self.settings.CERT_BUNDLE,\n            )\n\n            if not self.settings.SUPPRESS_SEND:  # for test environ\n                await self.session.connect()\n\n                if self.settings.USE_CREDENTIALS:\n                    await self.session.login(\n                        self.settings.MAIL_USERNAME,\n                        self.settings.MAIL_PASSWORD.get_secret_value(),\n                    )\n\n        except Exception as error:\n            raise ConnectionErrors(\n                f\"Exception raised {error}, check your credentials or email service configuration\"\n            )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/sabuhish/fastapi-mail/blob/3842f266f60e6bd069f77b86e78be69ee0baaf52/fastapi_mail/connection.py#L33-L58",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F235"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20aiosmtplib%20for%20email%20notification%20SMTP%20submission%20and%20message%20delivery&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F221"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import asyncio\nfrom email.message import EmailMessage\nimport aiosmtplib\n\nmessage = EmailMessage()\nmessage[\"From\"] = \"root@localhost\"\nmessage[\"To\"] = \"somebody@example.com\"\nmessage[\"Subject\"] = \"Hello World!\"\nmessage.set_content(\"Sent via aiosmtplib\")\nasyncio.run(aiosmtplib.send(message, hostname=\"127.0.0.1\", port=1025))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://aiosmtplib.readthedocs.io/en/stable/usage.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "usage.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "django-anymail",
          "name": [
            {
              "t": "fact",
              "fact": "F238"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/anymail/django-anymail"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/django-anymail"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F245"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/anymail/django-anymail",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F238"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mblayman/homeschool",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F255"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _generate_magic_link(user_id):\n    \"\"\"Generate magic link and send email.\"\"\"\n    user = User.objects.get(id=user_id)\n    login_url = full_url_reverse(\"sesame-login\") + get_query_string(user)\n    print(f\"Copyable magic login link for {user.email}: {login_url}\", flush=True)\n    context = {\"login_url\": login_url}\n    text_message = render_to_string(\"accounts/email/login.txt\", context)\n    html_message = render_to_string(\"accounts/email/login.html\", context)\n\n    message = AnymailMessage(\n        subject=\"Signin to School Desk\",\n        body=text_message,\n        to=[user.email],\n    )\n    message.attach_alternative(html_message, \"text/html\")\n    message.send()\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mblayman/homeschool/blob/0580b84b86a6593e3e86382f007b8924854136cf/homeschool/accounts/tasks.py#L29-L44",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F254"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=django-anymail%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F238"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from anymail.message import AnymailMessage\n\nmessage = AnymailMessage(\n    subject=\"Hello\", body=\"Hello from Anymail\",\n    from_email=\"sender@example.com\", to=[\"recipient@example.com\"],\n)\nmessage.send()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/anymail/django-anymail/blob/v15.2/anymail/message.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "message.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "azure-communication-email",
          "name": [
            {
              "t": "fact",
              "fact": "F257"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Azure/azure-sdk-for-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/azure-communication-email"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F264"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/Azure/azure-sdk-for-python",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F257"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Azure/azure-cli",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def send_email(html_content):\n    logger.info('Sending email...')\n    from azure.communication.email import EmailClient\n\n    client = EmailClient.from_connection_string(EMAIL_KEY);\n    content = {\n        \"subject\": \"Test results of Azure CLI\",\n        \"html\": html_content,\n    }\n\n    recipients = ''\n\n    if EMAIL_ADDRESS != '':\n        recipients = {\n            \"to\": [\n                {\n                    \"address\": EMAIL_ADDRESS\n                },\n            ]\n        }\n    elif USER_TARGET.lower() in ['all', ''] \\\n            and USER_REPO == 'https://github.com/Azure/azure-cli.git' \\\n            and USER_REPO_EXT == 'https://github.com/Azure/azure-cli-extensions.git' \\\n            and USER_BRANCH in ['dev', 'live-test'] and USER_BRANCH_EXT in ['main', 'live-test'] \\\n            and USER_LIVE == '--live' and EMAIL_ADDRESS == '':\n        recipients = {\n            \"to\": [\n                {\n                    \"address\": \"AzPyCLI@microsoft.com\"\n                },\n                {\n                    \"address\": \"antcliTest@microsoft.com\"\n                }\n            ]\n        }\n\n    if recipients:\n        message = {\n            \"content\": content,\n            \"senderAddress\": \"DoNotReply@561634e2-1674-4377-9975-10a9197437d7.azurecomm.net\",\n            \"recipients\": recipients\n        }\n\n        client.begin_send(message)\n        logger.info('Finish sending email')\n    else:\n        logger.info('No recipients, skip sending email')\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Azure/azure-cli/blob/a9414b0df27c52c1fed97223e7941759d31889e9/scripts/live_test/sendemail.py#L581-L627",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F273"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=azure-communication-email%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F257"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import os\nfrom azure.communication.email import EmailClient\n\nclient = EmailClient.from_connection_string(os.environ[\"COMMUNICATION_CONNECTION_STRING\"])\npoller = client.begin_send({\n    \"senderAddress\": \"sender@contoso.com\",\n    \"content\": {\"subject\": \"Hello\", \"plainText\": \"Hello from Azure\"},\n    \"recipients\": {\"to\": [{\"address\": \"recipient@example.com\"}]},\n})\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://learn.microsoft.com/en-us/python/api/overview/azure/communication-email-readme?view=azure-python",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F262"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "flask-mail-library",
          "name": [
            {
              "t": "fact",
              "fact": "F276"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pallets-eco/flask-mail"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/flask-mail"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F283"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pallets-eco/flask-mail",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F276"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/hack4impact/flask-base",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F293"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def send_email(recipient, subject, template, **kwargs):\n    app = create_app(os.getenv('FLASK_CONFIG') or 'default')\n    with app.app_context():\n        msg = Message(\n            app.config['EMAIL_SUBJECT_PREFIX'] + ' ' + subject,\n            sender=app.config['EMAIL_SENDER'],\n            recipients=[recipient])\n        msg.body = render_template(template + '.txt', **kwargs)\n        msg.html = render_template(template + '.html', **kwargs)\n        mail.send(msg)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/hack4impact/flask-base/blob/811fda1cb350ff7881829914c95cb2b10fbe7525/app/email.py#L10-L19",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F292"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=flask-mail%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F276"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from flask import Flask\nfrom flask_mail import Mail, Message\n\napp = Flask(__name__)\napp.config.update(MAIL_SERVER=\"localhost\", MAIL_PORT=25)\nmail = Mail(app)\nwith app.app_context():\n    mail.send(Message(\"Hello\", sender=\"from@example.com\",\n                      recipients=[\"to@example.com\"], body=\"Hello from Flask\"))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://flask-mail.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F281"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python email library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#aiosmtplib",
          "label": [
            {
              "t": "text",
              "text": "aiosmtplib"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits asyncio applications that send through an SMTP server. "
        },
        {
          "t": "link",
          "href": "#sendgrid",
          "label": [
            {
              "t": "text",
              "text": "SendGrid"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#resend",
          "label": [
            {
              "t": "text",
              "text": "Resend"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit apps that send through a provider's HTTP API. "
        },
        {
          "t": "link",
          "href": "#django-anymail",
          "label": [
            {
              "t": "text",
              "text": "Anymail"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Django projects that may switch providers."
        }
      ]
    },
    {
      "q": "How do I send email in Python?",
      "a": [
        {
          "t": "text",
          "text": "The built-in smtplib module sends a message through any SMTP server. Provider SDKs such as "
        },
        {
          "t": "link",
          "href": "#sendgrid",
          "label": [
            {
              "t": "text",
              "text": "SendGrid"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#resend",
          "label": [
            {
              "t": "text",
              "text": "Resend"
            }
          ]
        },
        {
          "t": "text",
          "text": " send the same message as an HTTP request to the provider's email API."
        }
      ]
    },
    {
      "q": "What is smtplib?",
      "a": [
        {
          "t": "text",
          "text": "smtplib is the SMTP client in the Python standard library. "
        },
        {
          "t": "link",
          "href": "#aiosmtplib",
          "label": [
            {
              "t": "text",
              "text": "aiosmtplib"
            }
          ]
        },
        {
          "t": "text",
          "text": " does the same job with asyncio coroutines for connection, authentication, TLS, and sending."
        }
      ]
    },
    {
      "q": "How do I send email with SendGrid in Python?",
      "a": [
        {
          "t": "text",
          "text": "Build a message with the "
        },
        {
          "t": "link",
          "href": "#sendgrid",
          "label": [
            {
              "t": "text",
              "text": "SendGrid"
            }
          ]
        },
        {
          "t": "text",
          "text": " Mail helper and send it through the SDK client. The client calls the SendGrid email API."
        }
      ]
    },
    {
      "q": "How do I send email in Django?",
      "a": [
        {
          "t": "link",
          "href": "#django",
          "label": [
            {
              "t": "text",
              "text": "Django"
            }
          ]
        },
        {
          "t": "text",
          "text": " sends multipart email through configurable mail backends. "
        },
        {
          "t": "link",
          "href": "#django-anymail",
          "label": [
            {
              "t": "text",
              "text": "Anymail"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds backends and webhooks for transactional email providers such as Mailgun, Postmark, and SendGrid."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, aiosmtplib",
      "display": "aiosmtplib",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, aiosmtplib",
      "display": "12.6M",
      "asOf": "2026-11-17"
    },
    "F3": {
      "label": "License, aiosmtplib",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, aiosmtplib",
      "display": "5.1.3, Sep 2026",
      "asOf": "2026-09-08"
    },
    "F5": {
      "label": "Package release date, aiosmtplib",
      "display": "Sep 2026",
      "asOf": "2026-09-08"
    },
    "F6": {
      "label": "Repository stars, aiosmtplib",
      "display": "438",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "TLS upgrade, aiosmtplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "TLS on connect, aiosmtplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Native async, aiosmtplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Recipient lists, aiosmtplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, aiosmtplib",
      "display": "pip install aiosmtplib",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, aiosmtplib",
      "display": "Provides an SMTP client for Python asyncio applications.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, aiosmtplib",
      "display": "Provides awaited SMTP operations",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, aiosmtplib",
      "display": "Await connection setup, authentication, and message submission from async application code.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, aiosmtplib",
      "display": "Automatically upgrades advertised STARTTLS connections",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, aiosmtplib",
      "display": "Leave automatic upgrades enabled when the server advertises STARTTLS support.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, aiosmtplib",
      "display": "One connection sends sequentially",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, aiosmtplib",
      "display": "Split email across multiple connections for concurrent submission.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, aiosmtplib",
      "display": "Implicit TLS differs from STARTTLS",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, aiosmtplib",
      "display": "Use use_tls only for servers accepting TLS from the connection’s start.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, aiosmtplib",
      "display": "import asyncio\nfrom email.message import EmailMessage\n\nimport aiosmtplib\n\nasync def send_hello_world():\n    message = EmailMessage()\n    message[\"From\"] = \"root@localhost\"\n    message[\"To\"] = \"somebody@example.com\"\n    message[\"Subject\"] = \"Hello World!\"\n    message.set_content(\"Sent via aiosmtplib\")\n\n    await aiosmtplib.send(message, hostname=\"127.0.0.1\", port=1025)\n\nasyncio.run(send_hello_world())\n\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, aiosmtplib",
      "display": "async def _configure_connection(self) -> None:\n    try:\n        self.session = aiosmtplib.SMTP(\n            hostname=self.settings.MAIL_SERVER,\n            timeout=self.settings.TIMEOUT,\n            port=self.settings.MAIL_PORT,\n            use_tls=self.settings.MAIL_SSL_TLS,\n            start_tls=self.settings.MAIL_STARTTLS,\n            validate_certs=self.settings.VALIDATE_CERTS,\n            local_hostname=self.settings.LOCAL_HOSTNAME,\n            cert_bundle=self.settings.CERT_BUNDLE,\n        )\n\n        if not self.settings.SUPPRESS_SEND:  # for test environ\n            await self.session.connect()\n\n            if self.settings.USE_CREDENTIALS:\n                await self.session.login(\n                    self.settings.MAIL_USERNAME,\n                    self.settings.MAIL_PASSWORD.get_secret_value(),\n                )\n\n    except Exception as error:\n        raise ConnectionErrors(\n            f\"Exception raised {error}, check your credentials or email service configuration\"\n        )\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, aiosmtplib",
      "display": "connection.py · _configure_connection()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, aiosmtplib",
      "display": "sabuhish/fastapi-mail",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, sabuhish/fastapi-mail",
      "display": "1.0K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, sabuhish/fastapi-mail",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F27": {
      "label": "Library name, Flask-Mail",
      "display": "Flask-Mail",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, Flask-Mail",
      "display": "1.4M",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "License, Flask-Mail",
      "display": "BSD",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, Flask-Mail",
      "display": "0.10.0, May 2024",
      "asOf": "2024-05-23"
    },
    "F31": {
      "label": "Package release date, Flask-Mail",
      "display": "May 2024",
      "asOf": "2024-05-23"
    },
    "F32": {
      "label": "Repository stars, Flask-Mail",
      "display": "644",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "TLS upgrade, Flask-Mail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "TLS on connect, Flask-Mail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Recipient lists, Flask-Mail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, Flask-Mail",
      "display": "pip install Flask-Mail",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, Flask-Mail",
      "display": "Integrates SMTP configuration and email sending with Flask applications.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, Flask-Mail",
      "display": "Uses Flask application settings",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, Flask-Mail",
      "display": "Configure mail settings before initializing the extension.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, Flask-Mail",
      "display": "Reuses connections for bulk messages",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, Flask-Mail",
      "display": "Use mail.connect to send a batch through one managed connection.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, Flask-Mail",
      "display": "Configuration must precede initialization",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, Flask-Mail",
      "display": "Load mail settings before constructing Mail or calling init_app.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, Flask-Mail",
      "display": "Bulk sends need connection limits",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, Flask-Mail",
      "display": "Set MAIL_MAX_EMAILS when the server limits sends per connection.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, Flask-Mail",
      "display": "from 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",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, Flask-Mail",
      "display": "def send_email(recipient, subject, template, **kwargs):\n    app = create_app(os.getenv('FLASK_CONFIG') or 'default')\n    with app.app_context():\n        msg = Message(\n            app.config['EMAIL_SUBJECT_PREFIX'] + ' ' + subject,\n            sender=app.config['EMAIL_SENDER'],\n            recipients=[recipient])\n        msg.body = render_template(template + '.txt', **kwargs)\n        msg.html = render_template(template + '.html', **kwargs)\n        mail.send(msg)\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, Flask-Mail",
      "display": "email.py · send_email()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, Flask-Mail",
      "display": "hack4impact/flask-base",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, hack4impact/flask-base",
      "display": "3.1K",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, hack4impact/flask-base",
      "display": "Mar 2024",
      "asOf": "2024-03-21"
    },
    "F52": {
      "label": "Library name, fastapi-mail",
      "display": "fastapi-mail",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, fastapi-mail",
      "display": "898.9K",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "License, fastapi-mail",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, fastapi-mail",
      "display": "1.6.8, Aug 2026",
      "asOf": "2026-08-22"
    },
    "F56": {
      "label": "Package release date, fastapi-mail",
      "display": "Aug 2026",
      "asOf": "2026-08-22"
    },
    "F57": {
      "label": "Repository stars, fastapi-mail",
      "display": "1.0K",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "TLS upgrade, fastapi-mail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "TLS on connect, fastapi-mail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Native async, fastapi-mail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Recipient lists, fastapi-mail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Install, fastapi-mail",
      "display": "pip install fastapi-mail",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "What it does, fastapi-mail",
      "display": "Sends email and attachments from FastAPI applications.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, fastapi-mail",
      "display": "Provides async message submission",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, fastapi-mail",
      "display": "Await FastMail.send_message from an async endpoint.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, fastapi-mail",
      "display": "Renders Jinja templates",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, fastapi-mail",
      "display": "Supply template_body data and a template filename when sending messages.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, fastapi-mail",
      "display": "Templates need an explicit folder",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, fastapi-mail",
      "display": "Set TEMPLATE_FOLDER before sending a named Jinja template.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Quickstart, fastapi-mail",
      "display": "from fastapi import FastAPI\nfrom starlette.responses import JSONResponse\nfrom fastapi_mail import FastMail, MessageSchema, ConnectionConfig, MessageType\nfrom pydantic import EmailStr, BaseModel\nfrom typing import List\n\nclass EmailSchema(BaseModel):\n    email: List[EmailStr]\n\nconf = ConnectionConfig(\n    MAIL_USERNAME = \"username\",\n    MAIL_PASSWORD = \"**********\",\n    MAIL_FROM = \"test@email.com\",\n    MAIL_PORT = 587,\n    MAIL_SERVER = \"mail server\",\n    MAIL_FROM_NAME=\"Desired Name\",\n    MAIL_STARTTLS = True,\n    MAIL_SSL_TLS = False,\n    USE_CREDENTIALS = True,\n    VALIDATE_CERTS = True\n)\n\napp = FastAPI()\n\n@app.post(\"/email\")\nasync def simple_send(email: EmailSchema) -> JSONResponse:\n    html = \"\"\"<p>Hi this test mail, thanks for using Fastapi-mail</p> \"\"\"\n\n    message = MessageSchema(\n        subject=\"Fastapi-Mail module\",\n        recipients=email.dict().get(\"email\"),\n        body=html,\n        subtype=MessageType.html)\n\n    fm = FastMail(conf)\n    await fm.send_message(message)\n    return JSONResponse(status_code=200, content={\"message\": \"email has been sent\"})\n\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Library name, yagmail",
      "display": "yagmail",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Monthly downloads, yagmail",
      "display": "232.2K",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "License, yagmail",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Package release, yagmail",
      "display": "0.16.0, May 2026",
      "asOf": "2026-05-26"
    },
    "F75": {
      "label": "Package release date, yagmail",
      "display": "May 2026",
      "asOf": "2026-05-26"
    },
    "F76": {
      "label": "Repository stars, yagmail",
      "display": "2.7K",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "TLS upgrade, yagmail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "TLS on connect, yagmail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Native async, yagmail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Recipient lists, yagmail",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Install, yagmail",
      "display": "pip install yagmail",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "What it does, yagmail",
      "display": "Wraps SMTP message creation and sending, including a native async client.",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "strengths lead, yagmail",
      "display": "Includes a native async client",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths, yagmail",
      "display": "Use AsyncClient for non-blocking email sending through asyncio.",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths lead, yagmail",
      "display": "Accepts recipient lists",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths, yagmail",
      "display": "Pass a list of addresses to send to a group.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "limitations lead, yagmail",
      "display": "Defaults target Gmail",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "limitations, yagmail",
      "display": "Override the host when using a different SMTP service.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations lead, yagmail",
      "display": "Content strings receive automatic interpretation",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations, yagmail",
      "display": "Wrap literal content in raw to prevent HTML, attachment, and inline interpretation.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Quickstart, yagmail",
      "display": "import yagmail\nyag = yagmail.Client('mygmailusername', 'mygmailpassword')\ncontents = ['This is the body, and here is just text http://somedomain/image.png',\n            'You can find an audio file attached.', '/local/path/song.mp3']\nyag.send('to@someone.com', 'subject', contents)\n",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Project function, yagmail",
      "display": "@tools.registry.action('Done with task')\nasync def done(text: str):\n\timport yagmail  # type: ignore\n\n\t# To send emails use\n\t# STEP 1: go to https://support.google.com/accounts/answer/185833\n\t# STEP 2: Create an app password (you can't use here your normal gmail password)\n\t# STEP 3: Use the app password in the code below for the password\n\tyag = yagmail.SMTP('your_email@gmail.com', 'your_app_password')\n\tyag.send(\n\t\tto='recipient@example.com',\n\t\tsubject='Test Email',\n\t\tcontents=f'result\\n: {text}',\n\t)\n\n\treturn ActionResult(is_done=True, extracted_content='Email sent!')\n",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Project function reference, yagmail",
      "display": "notification.py · done()",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project repository, yagmail",
      "display": "browser-use/browser-use",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project stars, browser-use/browser-use",
      "display": "121.2K",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project push date, browser-use/browser-use",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Library name, smtplib",
      "display": "smtplib",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Monthly downloads, smtplib",
      "display": "Standard library",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "License, smtplib",
      "display": "PSF License Version 2",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Package release, smtplib",
      "display": "With Python",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Undated package release, smtplib",
      "display": "With Python",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Repository context, smtplib",
      "display": "Part of Python",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "TLS upgrade, smtplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "TLS on connect, smtplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Recipient lists, smtplib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Install, smtplib",
      "display": "Bundled with Python",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "What it does, smtplib",
      "display": "Provides Python’s standard-library SMTP client for sending email.",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "strengths lead, smtplib",
      "display": "Controls individual SMTP operations",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "strengths, smtplib",
      "display": "Manage connection, authentication, and message submission through explicit SMTP methods.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "strengths lead, smtplib",
      "display": "Reports individual recipient refusals",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "strengths, smtplib",
      "display": "Inspect the returned dictionary for addresses the SMTP server refused.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "limitations lead, smtplib",
      "display": "Envelope addresses leave headers unchanged",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "limitations, smtplib",
      "display": "Set message headers separately from SMTP sender and recipient arguments.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Quickstart, smtplib",
      "display": "import smtplib\n\ndef prompt(title):\n    return input(title).strip()\n\nfrom_addr = prompt(\"From: \")\nto_addrs  = prompt(\"To: \").split()\nprint(\"Enter message, end with ^D (Unix) or ^Z (Windows):\")\n\n# Add the From: and To: headers at the start!\nlines = [f\"From: {from_addr}\", f\"To: {', '.join(to_addrs)}\", \"\"]\nwhile True:\n    try:\n        line = input()\n    except EOFError:\n        break\n    else:\n        lines.append(line)\n\nmsg = \"\\r\\n\".join(lines)\nprint(\"Message length is\", len(msg))\n\nserver = smtplib.SMTP(\"localhost\")\nserver.set_debuglevel(1)\nserver.sendmail(from_addr, to_addrs, msg)\nserver.quit()\n\n",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Project function, smtplib",
      "display": "def authorize_smtp(\n    self,\n    account: str = None,\n    password: str = None,\n    smtp_server: str = None,\n    smtp_port: int = None,\n    is_oauth: bool = False,\n) -> None:\n    \"\"\"Authorize to SMTP server.\n\n    :param account: SMTP account name, defaults to None\n    :param password: SMTP account password, defaults to None\n    :param smtp_server: SMTP server address, defaults to None\n    :param smtp_port: SMTP server port, defaults to None (587 for SMTP)\n    :param is_oauth: Use XOAUTH2 protocol with a base64 encoded OAuth2 string as\n        `password`\n\n    Can be called without giving any parameters if library\n    has been initialized with necessary information and/or\n    keyword ``Set Credentials`` has been called.\n\n    Example:\n\n    .. code-block:: robotframework\n\n        Authorize SMTP    ${username}   ${password}  smtp.gmail.com  587\n    \"\"\"\n    account = account or self.account\n    password = password or self.password\n    smtp_server = smtp_server or self.smtp_server\n    smtp_port = smtp_port or self.smtp_port\n    if smtp_server:\n        try:\n            self.smtp_conn = SMTP(smtp_server, smtp_port)\n            self.send_smtp_hello()\n            try:\n                self.smtp_conn.starttls()\n            except SMTPNotSupportedError:\n                self.logger.warning(\"TLS not supported by the server\")\n        except SMTPConnectError:\n            context = ssl.create_default_context()\n            self.smtp_conn = SMTP_SSL(smtp_server, smtp_port, context=context)\n        if account and password:\n            if is_oauth:\n                self.smtp_conn.auth(\n                    \"XOAUTH2\", lambda: base64.b64decode(password.encode()).decode()\n                )\n            else:\n                self.smtp_conn.login(account, password)\n    else:\n        self.logger.warning(\"SMTP server address is needed for authentication\")\n    if self.smtp_conn is None:\n        self.logger.warning(\"Not able to establish SMTP connection\")\n",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Project function reference, smtplib",
      "display": "ImapSmtp.py · authorize_smtp()",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Project repository, smtplib",
      "display": "robocorp/rpaframework",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "Project stars, robocorp/rpaframework",
      "display": "1.6K",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "Project push date, robocorp/rpaframework",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F120": {
      "label": "Developer need",
      "display": "Direct SMTP protocol control",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "Why choose smtplib",
      "display": "explicit connection, authentication, and submission methods",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "Developer need in introduction",
      "display": "direct SMTP protocol control",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "When to consider aiosmtplib",
      "display": "application code needs awaitable SMTP operations",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "Developer need",
      "display": "Async SMTP connection management",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "Why choose aiosmtplib",
      "display": "awaited native SMTP operations",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Developer need in introduction",
      "display": "async SMTP connection management",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "Developer need",
      "display": "Convenient async message sending",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "Why choose yagmail",
      "display": "the native AsyncClient interface",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "Developer need in introduction",
      "display": "convenient async message sending",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "When to consider smtplib",
      "display": "explicit SMTP operations matter most",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "Developer need",
      "display": "Flask application integration",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "Why choose Flask-Mail",
      "display": "mail settings from the Flask application",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "Developer need in introduction",
      "display": "Flask application integration",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "When to consider fastapi-mail",
      "display": "the application uses async FastAPI endpoints",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "Developer need",
      "display": "FastAPI async endpoints",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "Why choose fastapi-mail",
      "display": "awaited message submission from a typed request endpoint",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "Developer need in introduction",
      "display": "FastAPI async endpoints",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "Page introduction",
      "display": "Python email libraries let application developers compose or send email messages.",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "FAQ: How do I send an email in Python?",
      "display": "Create an smtplib SMTP connection, submit the message with sendmail, and close the connection.",
      "asOf": "2026-11-17"
    },
    "F140": {
      "label": "FAQ: How do I send email from async Python code?",
      "display": "Build an EmailMessage and await aiosmtplib.send from an async function.",
      "asOf": "2026-11-17"
    },
    "F141": {
      "label": "FAQ: What is the difference between STARTTLS and implicit TLS?",
      "display": "Implicit TLS encrypts the connection from its start; use_tls=True is not the setting for a STARTTLS endpoint.",
      "asOf": "2026-11-17"
    },
    "F142": {
      "label": "FAQ: What is the difference between STARTTLS and implicit TLS?",
      "display": "aiosmtplib upgrades an advertised STARTTLS connection automatically unless disabled.",
      "asOf": "2026-11-17"
    },
    "F143": {
      "label": "FAQ: How do I send an HTML email with Python?",
      "display": "Flask-Mail messages can carry both a plain-text body and HTML content.",
      "asOf": "2026-11-17"
    },
    "F144": {
      "label": "FAQ: How do I attach a file to an email with yagmail?",
      "display": "Include the attachment path in the contents list passed to yagmail send.",
      "asOf": "2026-11-17"
    },
    "F145": {
      "label": "FAQ: Why does changing SMTP recipients leave email headers unchanged?",
      "display": "smtplib sendmail takes envelope addresses separately and does not modify the message headers.",
      "asOf": "2026-11-17"
    },
    "F146": {
      "label": "Library name, boto3",
      "display": "boto3",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Monthly downloads, boto3",
      "display": "2.5B",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "License, boto3",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release, boto3",
      "display": "1.44.6",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release date, boto3",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Install, boto3",
      "display": "python -m pip install boto3",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Quickstart, boto3",
      "display": "import boto3\n\nses = boto3.client(\"sesv2\", region_name=\"us-east-1\")\nresponse = ses.send_email(\n    FromEmailAddress=\"sender@example.com\",\n    Destination={\"ToAddresses\": [\"recipient@example.com\"]},\n    Content={\"Simple\": {\"Subject\": {\"Data\": \"Hello\"},\n                        \"Body\": {\"Text\": {\"Data\": \"Hello from SES\"}}}},\n)\n",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Official description, boto3",
      "display": "Provides the AWS SDK for Python.",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Quickstart source file, boto3",
      "display": "reference/services/sesv2/client/send_email",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Repository stars, boto3",
      "display": "9.9K",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "SMTP transport, boto3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Native async send, boto3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Delivery interface and service role, boto3",
      "display": "Native Amazon SES HTTP service client within a broad AWS SDK; selected interface is SES v1 send_raw_email,distinct from SESv2 schemas and the service SMTP endpoint.",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Current call and result contract, boto3",
      "display": "ses_client() imported from the original emails.apps module obtains a boto3 SES v1 client; it is not SESv2 or an async facade. Current1.44.6 SES send_raw_email supports Source:str,Destinations:list[str],RawMessage.Data:str/bytes,and ConfigurationSetName:str. Native SDK performs base64 transport encoding; function passes the complete MIME message.as_string(). Configuration set must exist and source/sandbox identities must satisfy SES account rules. Returns original native response dict with MessageId and ResponseMetadata; catches botocore ClientError and rethrows. Queue acceptance is not recipient delivery. Counters/logger/EmailMessage serialization are peer operations,not extra Boto3 calls.",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "First-call prerequisites, boto3",
      "display": "Configured AWS credentials,SES region,and verified sender. Sandbox also restricts recipients. This first call deliberately uses SESv2 Simple payload; external example separately demonstrates SESv1 RawMessage. SDK/account permissions/region quotas required.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Service schemas, boto3",
      "display": "SESv1 send_raw_email RawMessage is distinct from SESv2 send_email Content.Simple/Raw/Template. Hosted SES SMTP endpoint is a separate transport from these Boto3 HTTP clients.",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Library name, django",
      "display": "Django",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Monthly downloads, django",
      "display": "52.2M",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "License, django",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Package release, django",
      "display": "6.1.3",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release date, django",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Install, django",
      "display": "python -m pip install django",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Quickstart, django",
      "display": "from django.core.mail import send_mail\n\nsend_mail(\n    \"Subject here\",\n    \"Here is the message.\",\n    \"from@example.com\",\n    [\"to@example.com\"],\n)\n",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Official description, django",
      "display": "Provides a high-level Python web framework for rapid development.",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Quickstart source file, django",
      "display": "docs/topics/email.txt",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Repository stars, django",
      "display": "91.8K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "SMTP transport, django",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Native async send, django",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Delivery interface and service role, django",
      "display": "Framework-level multipart email and configurable mailer/backends; current6.1 introduces MAILERS,with legacy EMAIL_BACKEND compatibility deprecated.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Current call and result contract, django",
      "display": "Wagtail imports native Django EmailMultiAlternatives/get_connection/mailers. On current6.1 branch its default mailers.default/mailers[using] is used without obsolete credential overrides; configured legacy branch still forwards recognized username/password/fail_silently kwargs. Current constructors accept subject,body,from_email,to,headers,bcc,cc,and reply_to; attach_alternative(html,\"text/html\"),recipients(),and send_messages([message]) remain public. Caller-supplied connection must implement the native backend contract. Returns0 without recipients or the backend sent-message count. send_messages counts backend submission,not final recipient delivery; some custom backends can return None. Header Auto-Submitted and Bcc/Cc/Reply-To behavior remains unchanged. Settings and rendered HTML are caller prerequisites,not generated here.",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "First-call prerequisites, django",
      "display": "Run in an initialized Django project/shell. Current6.1 requires configured MAILERS: e.g default BACKEND django.core.mail.backends.smtp.EmailBackend with OPTIONS.host and any actual port/auth/TLS. Generated projects print to console by default; that is not real SMTP delivery.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Django6.1 configuration change, django",
      "display": "MAILERS supplies backend and OPTIONS; old EMAIL_BACKEND and EMAIL_* fallback is deprecated. Generated startproject configuration prints mail to console by default.",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project function, django",
      "display": "def send_mail(subject, message, recipient_list, from_email=None, **kwargs):\n    \"\"\"\n    Wrapper around Django's EmailMultiAlternatives as done in send_mail().\n    Custom from_email handling and special Auto-Submitted header.\n    \"\"\"\n    if not from_email:\n        if hasattr(settings, \"WAGTAILADMIN_NOTIFICATION_FROM_EMAIL\"):\n            from_email = settings.WAGTAILADMIN_NOTIFICATION_FROM_EMAIL\n        elif hasattr(settings, \"DEFAULT_FROM_EMAIL\"):\n            from_email = settings.DEFAULT_FROM_EMAIL\n        else:\n            # We are no longer using the term `webmaster` except in this case, where we continue to match Django's default: https://github.com/django/django/blob/stable/3.2.x/django/conf/global_settings.py#L223\n            from_email = \"webmaster@localhost\"\n\n    using = kwargs.get(\"using\")\n    connection = kwargs.get(\"connection\")\n\n    if not connection:\n        # Only pass the arguments that have been given. On Django 6.1 and above these\n        # are applied on top of the mailer configuration, so passing None would replace\n        # the configured username and password, leaving the backend unauthenticated.\n        connection_kwargs = {}\n        if kwargs.get(\"auth_user\") is not None:\n            connection_kwargs[\"username\"] = kwargs[\"auth_user\"]\n        if kwargs.get(\"auth_password\") is not None:\n            connection_kwargs[\"password\"] = kwargs[\"auth_password\"]\n        if kwargs.get(\"fail_silently\"):\n            connection_kwargs[\"fail_silently\"] = kwargs[\"fail_silently\"]\n\n        if DJANGO_VERSION >= (6, 1) and not connection_kwargs:\n            connection = mailers.default if using is None else mailers[using]\n        else:\n            connection = get_connection(**connection_kwargs)\n\n    multi_alt_kwargs = {\n        \"headers\": {\n            \"Auto-Submitted\": \"auto-generated\",\n        },\n        \"bcc\": kwargs.get(\"bcc\", None),\n        \"cc\": kwargs.get(\"cc\", None),\n        \"reply_to\": kwargs.get(\"reply_to\", None),\n    }\n    mail = EmailMultiAlternatives(\n        subject, message, from_email, recipient_list, **multi_alt_kwargs\n    )\n    html_message = kwargs.get(\"html_message\", None)\n    if html_message:\n        mail.attach_alternative(html_message, \"text/html\")\n\n    if not mail.recipients():\n        return 0\n    return connection.send_messages([mail])\n",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project source file, django",
      "display": "wagtail/admin/mail.py",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project full_name, django",
      "display": "wagtail/wagtail",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project stargazers_count, django",
      "display": "20.7K",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Library name, sendgrid",
      "display": "SendGrid",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Monthly downloads, sendgrid",
      "display": "24.2M",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "License, sendgrid",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Package release, sendgrid",
      "display": "6.12.5",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Package release date, sendgrid",
      "display": "Sep 2025",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Install, sendgrid",
      "display": "python -m pip install sendgrid",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Quickstart, sendgrid",
      "display": "import os\nfrom sendgrid import SendGridAPIClient\nfrom sendgrid.helpers.mail import Mail\n\nclient = SendGridAPIClient(os.environ[\"SENDGRID_API_KEY\"])\nresponse = client.send(Mail(\n    from_email=\"from@example.com\", to_emails=\"to@example.com\",\n    subject=\"Hello\", html_content=\"<strong>Hello from SendGrid</strong>\",\n))\n",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Official description, sendgrid",
      "display": "Provides the Twilio SendGrid library for Python.",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Quickstart source file, sendgrid",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Repository stars, sendgrid",
      "display": "1.6K",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "SMTP transport, sendgrid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Native async send, sendgrid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Delivery interface and service role, sendgrid",
      "display": "SendGrid transactional Email API through SDK Mail helper or documented public HTTP forwarding client.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Current call and result contract, sendgrid",
      "display": "The receiver is a real SendGridAPIClient. Own USAGE documents the .client.mail.send.post(request_body=data) path; BaseInterface.send delegates to precisely that public forwarding path. The transport implementation is python-http-client,not misrepresented as an independently implemented SendGrid HTTP stack. Current Mail Send JSON uses personalizations[].to[].email/subject,from.email/name,and content[].type/value. Native proxy passes request_body unchanged. Sender must be authorized and API key must permit mail send. Native forwarded HTTP response exposes status_code; original compares it to202 ACCEPTED and logs otherwise. HTTP acceptance does not mean delivered. The retained one operation is the documented SDK forwarding contract; config and logging are not extra SDK calls.",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "First-call prerequisites, sendgrid",
      "display": "Valid SendGrid API key in named environment variable,verified sender,and network access. Public current Mail helper/basic send,not webhook handling or logging setup.",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Project function, sendgrid",
      "display": "def send_message(self, message: str = \"\", **kwargs: Any) -> None:\n        \"\"\"Send an email to a user via SendGrid.\"\"\"\n        subject = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)\n\n        data = {\n            \"personalizations\": [\n                {\"to\": [{\"email\": self.recipient}], \"subject\": subject}\n            ],\n            \"from\": {\"email\": self.sender, \"name\": self.sender_name},\n            \"content\": [{\"type\": CONTENT_TYPE_TEXT_PLAIN, \"value\": message}],\n        }\n\n        response = self._sg.client.mail.send.post(request_body=data)\n        if response.status_code != HTTPStatus.ACCEPTED:\n            _LOGGER.error(\"Unable to send notification\")\n",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Project source file, sendgrid",
      "display": "homeassistant/components/sendgrid/notify.py",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Project full_name, sendgrid",
      "display": "home-assistant/core",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project stargazers_count, sendgrid",
      "display": "92.4K",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Library name, resend",
      "display": "Resend",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Monthly downloads, resend",
      "display": "15.1M",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "License, resend",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Package release, resend",
      "display": "2.55.0",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Package release date, resend",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Install, resend",
      "display": "python -m pip install resend",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Quickstart, resend",
      "display": "import os\nimport resend\n\nresend.api_key = os.environ[\"RESEND_API_KEY\"]\nemail = resend.Emails.send({\n    \"from\": \"onboarding@resend.dev\", \"to\": [\"delivered@resend.dev\"],\n    \"subject\": \"Hello\", \"html\": \"<strong>Hello</strong>\",\n})\n",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Official description, resend",
      "display": "Provides the Python SDK for Resend.",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Quickstart source file, resend",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Repository stars, resend",
      "display": "133",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "SMTP transport, resend",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Native async send, resend",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Delivery interface and service role, resend",
      "display": "Resend Email API including native synchronous and optional async sending and optional scheduled_at.",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Current call and result contract, resend",
      "display": "Current2.55.0 native SendParams includes from,to,subject,html,and optional scheduled_at. Exact external function uses from (not legacy sender),recipient list,and optional ISO8601 scheduled_at without unsupported fields. Configured global resend.api_key and service-valid sender are prerequisites. Function remains a synchronous API invocation even though the library now also offers send_async. Current send returns SendResponse; original intentionally discards it and returns None. External thread-pool use is not SDK-native async support. Optional scheduling requests service scheduling,not guaranteed final delivery or a locally implemented scheduler.",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "First-call prerequisites, resend",
      "display": "Valid Resend API key and permitted verified/test sender/recipient. Uses current from key; no legacy sender alias. Sync first call; native optional async support requires resend[async].",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Native async transport, resend",
      "display": "send_async is available with optional httpx async extra. Existing synchronous external helper does not become awaitable merely because called by an async application.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Project function, resend",
      "display": "def _send_email_via_resend_sync(\n    to_email: str,\n    subject: str,\n    html_body: str,\n    from_email: Optional[str] = None,\n    scheduled_at: Optional[str] = None,\n) -> None:\n    \"\"\"Synchronous email sending function via Resend to be run in a thread pool.\n\n    Args:\n    ----\n        to_email (str): Recipient email address\n        subject (str): Email subject line\n        html_body (str): HTML email body\n        from_email (Optional[str]): Sender email (defaults to settings.RESEND_FROM_EMAIL)\n        scheduled_at (Optional[str]): ISO 8601 timestamp for scheduled delivery\n\n    \"\"\"\n    resend.api_key = settings.RESEND_API_KEY\n\n    email_data = {\n        \"from\": from_email or settings.RESEND_FROM_EMAIL,\n        \"to\": [to_email],\n        \"subject\": subject,\n        \"html\": html_body,\n    }\n\n    if scheduled_at:\n        email_data[\"scheduled_at\"] = scheduled_at\n\n    resend.Emails.send(email_data)\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project source file, resend",
      "display": "backend/airweave/email/services.py",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project full_name, resend",
      "display": "airweave-ai/airweave",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project stargazers_count, resend",
      "display": "6.5K",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Library name, aiosmtplib",
      "display": "aiosmtplib",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Monthly downloads, aiosmtplib",
      "display": "13.0M",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "License, aiosmtplib",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Package release, aiosmtplib",
      "display": "5.1.3",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Package release date, aiosmtplib",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Install, aiosmtplib",
      "display": "python -m pip install aiosmtplib",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Quickstart, aiosmtplib",
      "display": "import asyncio\nfrom email.message import EmailMessage\nimport aiosmtplib\n\nmessage = EmailMessage()\nmessage[\"From\"] = \"root@localhost\"\nmessage[\"To\"] = \"somebody@example.com\"\nmessage[\"Subject\"] = \"Hello World!\"\nmessage.set_content(\"Sent via aiosmtplib\")\nasyncio.run(aiosmtplib.send(message, hostname=\"127.0.0.1\", port=1025))\n",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Repository stars, aiosmtplib",
      "display": "438",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "SMTP transport, aiosmtplib",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Native async send, aiosmtplib",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Delivery interface and service role, aiosmtplib",
      "display": "Standalone asyncio SMTP transport with connection,authentication,TLS,and message coroutine APIs.",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Current call and result contract, aiosmtplib",
      "display": "Actual native SMTP constructor accepts hostname,timeout,port,use_tls,start_tls,validate_certs,local_hostname,and cert_bundle in current5.1.3. Its connect/login methods are awaitable and use username/password. Implicit TLS and STARTTLS must not both be enabled; SUPPRESS_SEND skips connection/auth by original design. validate_certs and certificate bundle behavior remain native. Configures session and returns None; it does not itself send a message. Native connect/login protocol responses are ignored. Pydantic SecretStr extraction and custom ConnectionErrors are host operations,not extra SMTP calls.",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "First-call prerequisites, aiosmtplib",
      "display": "A running local SMTP server at127.0.0.1:1025. asyncio.run is for a synchronous entrypoint; inside an already-running loop await send instead. Production host/auth/TLS must be configured for actual server; implicit TLS and STARTTLS are separate modes.",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project function, aiosmtplib",
      "display": "async def _configure_connection(self) -> None:\n        try:\n            self.session = aiosmtplib.SMTP(\n                hostname=self.settings.MAIL_SERVER,\n                timeout=self.settings.TIMEOUT,\n                port=self.settings.MAIL_PORT,\n                use_tls=self.settings.MAIL_SSL_TLS,\n                start_tls=self.settings.MAIL_STARTTLS,\n                validate_certs=self.settings.VALIDATE_CERTS,\n                local_hostname=self.settings.LOCAL_HOSTNAME,\n                cert_bundle=self.settings.CERT_BUNDLE,\n            )\n\n            if not self.settings.SUPPRESS_SEND:  # for test environ\n                await self.session.connect()\n\n                if self.settings.USE_CREDENTIALS:\n                    await self.session.login(\n                        self.settings.MAIL_USERNAME,\n                        self.settings.MAIL_PASSWORD.get_secret_value(),\n                    )\n\n        except Exception as error:\n            raise ConnectionErrors(\n                f\"Exception raised {error}, check your credentials or email service configuration\"\n            )\n",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project source file, aiosmtplib",
      "display": "fastapi_mail/connection.py",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Project full_name, aiosmtplib",
      "display": "sabuhish/fastapi-mail",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project stargazers_count, aiosmtplib",
      "display": "1.0K",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Library name, django-anymail",
      "display": "Anymail",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Monthly downloads, django-anymail",
      "display": "4.0M",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "License, django-anymail",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Package release, django-anymail",
      "display": "15.2",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Package release date, django-anymail",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Install, django-anymail",
      "display": "python -m pip install django-anymail",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart, django-anymail",
      "display": "from anymail.message import AnymailMessage\n\nmessage = AnymailMessage(\n    subject=\"Hello\", body=\"Hello from Anymail\",\n    from_email=\"sender@example.com\", to=[\"recipient@example.com\"],\n)\nmessage.send()\n",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Official description, django-anymail",
      "display": "Adds Django email backends and webhooks for transactional email providers such as Amazon SES, Mailgun, Postmark, and SendGrid.",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Quickstart source file, django-anymail",
      "display": "anymail/message.py",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Repository stars, django-anymail",
      "display": "1.9K",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "SMTP transport, django-anymail",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Native async send, django-anymail",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Delivery interface and service role, django-anymail",
      "display": "Provider-neutral Django integration across supported transactional ESP HTTP APIs with normalized status/webhook features.",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Current call and result contract, django-anymail",
      "display": "Current15.2 exports AnymailMessage(AnymailMessageMixin,EmailMultiAlternatives); mixin forwards standard constructor args to the public inherited Django API. Subject,body,to,attach_alternative(html,\"text/html\"),and send() used by exact function remain supported. These inherited methods are admitted only because the selected package explicitly exposes the subclass/public Django integration,not arbitrary Django use. A configured supported Anymail ESP backend is required for actual ESP dispatch; old surrounding project setup is not certified. Message.send returns backend count; original discards it. Native AnyMail backend implements synchronous send_messages returning submission count and exposes anymail_status separately; function does not claim delivery tracking. User lookup,magic-link generation,Jinja/Huey wrapping are peers,not native calls.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "First-call prerequisites, django-anymail",
      "display": "Initialized Django project with anymail installed and a supported configured ESP backend/API key. On Django6.1 configure MAILERS.default.BACKEND,for example anymail.backends.mailgun.EmailBackend,and its provider-specific key/domain. Appropriate ESP installation extra/account/verified sender required. This selected public AnymailMessage facade forwards normal Django arguments.",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Project function, django-anymail",
      "display": "def _generate_magic_link(user_id):\n    \"\"\"Generate magic link and send email.\"\"\"\n    user = User.objects.get(id=user_id)\n    login_url = full_url_reverse(\"sesame-login\") + get_query_string(user)\n    print(f\"Copyable magic login link for {user.email}: {login_url}\", flush=True)\n    context = {\"login_url\": login_url}\n    text_message = render_to_string(\"accounts/email/login.txt\", context)\n    html_message = render_to_string(\"accounts/email/login.html\", context)\n\n    message = AnymailMessage(\n        subject=\"Signin to School Desk\",\n        body=text_message,\n        to=[user.email],\n    )\n    message.attach_alternative(html_message, \"text/html\")\n    message.send()\n",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Project source file, django-anymail",
      "display": "homeschool/accounts/tasks.py",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Project full_name, django-anymail",
      "display": "mblayman/homeschool",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Project stargazers_count, django-anymail",
      "display": "244",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Library name, azure-communication-email",
      "display": "Azure Communication Email",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Monthly downloads, azure-communication-email",
      "display": "3.8M",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "License, azure-communication-email",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Package release, azure-communication-email",
      "display": "1.1.0",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Package release date, azure-communication-email",
      "display": "Oct 2025",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Install, azure-communication-email",
      "display": "python -m pip install azure-communication-email",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Quickstart, azure-communication-email",
      "display": "import os\nfrom azure.communication.email import EmailClient\n\nclient = EmailClient.from_connection_string(os.environ[\"COMMUNICATION_CONNECTION_STRING\"])\npoller = client.begin_send({\n    \"senderAddress\": \"sender@contoso.com\",\n    \"content\": {\"subject\": \"Hello\", \"plainText\": \"Hello from Azure\"},\n    \"recipients\": {\"to\": [{\"address\": \"recipient@example.com\"}]},\n})\n",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Official description, azure-communication-email",
      "display": "Provides a Microsoft Azure client library for Python.",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Quickstart source file, azure-communication-email",
      "display": "sdk/communication/azure-communication-email/README.md",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Repository stars, azure-communication-email",
      "display": "5.6K",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "SMTP transport, azure-communication-email",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Native async send, azure-communication-email",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Delivery interface and service role, azure-communication-email",
      "display": "Azure Communication Services Email client; long-running send returns poller,not immediate final-delivery guarantee.",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Current call and result contract, azure-communication-email",
      "display": "Current1.1.0 public factory accepts connection string; begin_send accepts JSON message senderAddress,content.subject/html,and recipients.to list of address dicts. Original client imported from azure.communication.email owns both operations. Email account/resource and verified senderAddress plus connection credential are required. Branch sends only if original recipient guards allow it. begin_send returns an LROPoller. Original intentionally does not wait on result(),so its following log is only request initiation,not delivery/completion proof. Peer logging/environment/CLI branch conditions remain unchanged.",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "First-call prerequisites, azure-communication-email",
      "display": "Provisioned Azure Communication Services Email resource,connected/verified sender domain,address,and valid connection string. begin_send starts an LRO; poller.result() is a separate completion wait. Service completion and recipient delivery are distinct; nothing was sent.",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Project function, azure-communication-email",
      "display": "def send_email(html_content):\n    logger.info('Sending email...')\n    from azure.communication.email import EmailClient\n\n    client = EmailClient.from_connection_string(EMAIL_KEY);\n    content = {\n        \"subject\": \"Test results of Azure CLI\",\n        \"html\": html_content,\n    }\n\n    recipients = ''\n\n    if EMAIL_ADDRESS != '':\n        recipients = {\n            \"to\": [\n                {\n                    \"address\": EMAIL_ADDRESS\n                },\n            ]\n        }\n    elif USER_TARGET.lower() in ['all', ''] \\\n            and USER_REPO == 'https://github.com/Azure/azure-cli.git' \\\n            and USER_REPO_EXT == 'https://github.com/Azure/azure-cli-extensions.git' \\\n            and USER_BRANCH in ['dev', 'live-test'] and USER_BRANCH_EXT in ['main', 'live-test'] \\\n            and USER_LIVE == '--live' and EMAIL_ADDRESS == '':\n        recipients = {\n            \"to\": [\n                {\n                    \"address\": \"AzPyCLI@microsoft.com\"\n                },\n                {\n                    \"address\": \"antcliTest@microsoft.com\"\n                }\n            ]\n        }\n\n    if recipients:\n        message = {\n            \"content\": content,\n            \"senderAddress\": \"DoNotReply@561634e2-1674-4377-9975-10a9197437d7.azurecomm.net\",\n            \"recipients\": recipients\n        }\n\n        client.begin_send(message)\n        logger.info('Finish sending email')\n    else:\n        logger.info('No recipients, skip sending email')\n",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project source file, azure-communication-email",
      "display": "scripts/live_test/sendemail.py",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project full_name, azure-communication-email",
      "display": "Azure/azure-cli",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project stargazers_count, azure-communication-email",
      "display": "4.7K",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Library name, flask-mail",
      "display": "Flask-Mail",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "Monthly downloads, flask-mail",
      "display": "1.4M",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "License, flask-mail",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F279": {
      "label": "Package release, flask-mail",
      "display": "0.10.0",
      "asOf": "2026-11-20"
    },
    "F280": {
      "label": "Package release date, flask-mail",
      "display": "May 2024",
      "asOf": "2026-11-20"
    },
    "F281": {
      "label": "Install, flask-mail",
      "display": "python -m pip install flask-mail",
      "asOf": "2026-11-20"
    },
    "F282": {
      "label": "Quickstart, flask-mail",
      "display": "from flask import Flask\nfrom flask_mail import Mail, Message\n\napp = Flask(__name__)\napp.config.update(MAIL_SERVER=\"localhost\", MAIL_PORT=25)\nmail = Mail(app)\nwith app.app_context():\n    mail.send(Message(\"Hello\", sender=\"from@example.com\",\n                      recipients=[\"to@example.com\"], body=\"Hello from Flask\"))\n",
      "asOf": "2026-11-20"
    },
    "F283": {
      "label": "Official description, flask-mail",
      "display": "Sends email from Flask applications.",
      "asOf": "2026-11-20"
    },
    "F284": {
      "label": "Quickstart source file, flask-mail",
      "display": "docs/index.md",
      "asOf": "2026-11-20"
    },
    "F285": {
      "label": "Repository stars, flask-mail",
      "display": "644",
      "asOf": "2026-11-20"
    },
    "F286": {
      "label": "SMTP transport, flask-mail",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F287": {
      "label": "Native async send, flask-mail",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F288": {
      "label": "Delivery interface and service role, flask-mail",
      "display": "Flask extension integrating SMTP configuration,application context,and Message composition.",
      "asOf": "2026-11-20"
    },
    "F289": {
      "label": "Current call and result contract, flask-mail",
      "display": "Current0.10 Message accepts positional subject,sender,and recipients; body/html fields are supported. Source app factory and imported mail extension bind public Flask-Mail Mail.send; original Flask app context is retained. Configured EMAIL_* here are application settings,not claimed built-in Flask-Mail key names; actual native transport uses MAIL_* settings. Mail.send returns None and raises on errors; it does not return a delivery receipt. Renders both template variants before sending. Flask context/app factory/Jinja rendering are peers and host prerequisites,not additional native operations.",
      "asOf": "2026-11-20"
    },
    "F290": {
      "label": "First-call prerequisites, flask-mail",
      "display": "A real SMTP server at localhost:25 and initialized Flask app context. Replace host/port/auth/TLS for actual provider. Sender and recipients explicit; no template files,threading,or authentication placeholders executed.",
      "asOf": "2026-11-20"
    },
    "F291": {
      "label": "Project function, flask-mail",
      "display": "def send_email(recipient, subject, template, **kwargs):\n    app = create_app(os.getenv('FLASK_CONFIG') or 'default')\n    with app.app_context():\n        msg = Message(\n            app.config['EMAIL_SUBJECT_PREFIX'] + ' ' + subject,\n            sender=app.config['EMAIL_SENDER'],\n            recipients=[recipient])\n        msg.body = render_template(template + '.txt', **kwargs)\n        msg.html = render_template(template + '.html', **kwargs)\n        mail.send(msg)\n",
      "asOf": "2026-11-20"
    },
    "F292": {
      "label": "Project source file, flask-mail",
      "display": "app/email.py",
      "asOf": "2026-11-20"
    },
    "F293": {
      "label": "Project full_name, flask-mail",
      "display": "hack4impact/flask-base",
      "asOf": "2026-11-20"
    },
    "F294": {
      "label": "Project stargazers_count, flask-mail",
      "display": "3.1K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python email libraries smtplib aiosmtplib yagmail Flask-Mail fastapi-mail code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
