Skip to content
asyncio smtplib implementation
Branch: master
Clone or download
Latest commit a32bcd4 Jun 16, 2019

README.rst

aiosmtplib

"aiosmtplib TravisCI build status" codecov "aiosmtplib on the Python Package Index" pypi-python-versions pypi-status pypi-license "Code style: black"


aiosmtplib is an asynchronous SMTP client for use with asyncio.

For documentation, see Read The Docs.

Quickstart

.. testcode::

    import asyncio
    from email.mime.text import MIMEText

    from aiosmtplib import send_message

    message = MIMEText("Sent via aiosmtplib")
    message["From"] = "root@localhost"
    message["To"] = "somebody@example.com"
    message["Subject"] = "Hello World!"

    loop = asyncio.get_event_loop()
    loop.run_until_complete(send_message(message, hostname="127.0.0.1", port=1025))


Requirements

Python 3.5.2+, compiled with SSL support, is required.

Bug reporting

Bug reports (and feature requests) are welcome via Github issues.

You can’t perform that action at this time.