Skip to content

asyncio smtplib implementation

License

Notifications You must be signed in to change notification settings

cole/aiosmtplib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

847e5af · Mar 24, 2025
Jan 27, 2025
Sep 27, 2023
Feb 3, 2025
Mar 1, 2025
Mar 1, 2025
Jan 21, 2025
Mar 24, 2025
Jun 18, 2024
Feb 3, 2025
May 3, 2022
Feb 14, 2022
Jan 26, 2025
Jan 26, 2025
Feb 1, 2025
Jun 18, 2024

Repository files navigation

aiosmtplib

"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"] = "[email protected]"
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.9+ is required.

Bug Reporting

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