aiosmtplib 5.0.0


pip install aiosmtplib

  Latest version

Released: Oct 19, 2025


Meta
Author: Cole Maclean
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • No Input/Output (Daemon)

Framework
  • AsyncIO

Intended Audience
  • Developers

Natural Language
  • English

Operating System
  • OS Independent

Topic
  • Communications
  • Communications :: Email
  • Software Development :: Libraries
  • Software Development :: Libraries :: Python Modules

Typing
  • Typed

"aiosmtplib CircleCI build status" "pre-commit.ci status" codecov "0 dependencies" "aiosmtplib on the Python Package Index" "aiosmtplib on pypy.tech" pypi-license


aiosmtplib is an asynchronous SMTP client for use with asyncio.

For documentation, see Read The Docs.

Quickstart

import asyncio
from email.message import EmailMessage

import aiosmtplib

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

asyncio.run(aiosmtplib.send(message, hostname="127.0.0.1", port=25))

Requirements

Python 3.10+ is required.

Bug Reporting

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

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies: