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



"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.


.. 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"] = ""
    message["Subject"] = "Hello World!"

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


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.