Skip to main content

asyncio SMTP client

Project description

"aiosmtplib CircleCI 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

import asyncio
from email.mime.text import MIMEText

import aiosmtplib

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(aiosmtplib.send(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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiosmtplib, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size aiosmtplib-1.1.0-py3-none-any.whl (28.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aiosmtplib-1.1.0.tar.gz (52.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page