---
title: "aiosmtplib | pypx"
description: "asyncio SMTP client"
canonical_url: "https://pypx.app/packages/aiosmtplib"
meta:
  "og:description": "asyncio SMTP client"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_aiosmtplib%2Cversion_5.1.3%2Csummary_asyncio%2BSMTP%2Bclient%2Clicense_MIT%2Cp_Ii9wYWNrYWdlcy9haW9zbXRwbGliIg%2Cs_nlmqxfbJFSSSxpI2.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "aiosmtplib 5.1.3"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_aiosmtplib%2Cversion_5.1.3%2Csummary_asyncio%2BSMTP%2Bclient%2Clicense_MIT%2Cp_Ii9wYWNrYWdlcy9haW9zbXRwbGliIg%2Cs_nlmqxfbJFSSSxpI2.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **aiosmtplib**

v5.1.3

asyncio SMTP client

29 KB Python 3.10+ py3-none-anyMIT

[** Diff **](https://pypx.app/packages/aiosmtplib/diff)

`$ uv add aiosmtplib`

# aiosmtplib

[!["aiosmtplib CircleCI build status"](https://circleci.com/gh/cole/aiosmtplib/tree/main.svg?style=shield)](https://circleci.com/gh/cole/aiosmtplib/tree/main) [!["pre-commit.ci status"](https://results.pre-commit.ci/badge/github/cole/aiosmtplib/main.svg)](https://results.pre-commit.ci/latest/github/cole/aiosmtplib/main) [!["0 dependencies"](https://0dependencies.dev/0dependencies.svg)](https://0dependencies.dev) [!["aiosmtplib on the Python Package Index"](https://img.shields.io/pypi/v/aiosmtplib.svg)](https://pypi.python.org/pypi/aiosmtplib) [!["aiosmtplib on pypy.tech"](https://static.pepy.tech/badge/aiosmtplib/month)](https://pepy.tech/project/aiosmtplib)

\------------

aiosmtplib is an asynchronous SMTP client for use with asyncio.

For documentation, see `Read The Docs`\_.

## Quickstart

.. start quickstart

```python
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))
```

.. end quickstart

## Requirements

.. start requirements

Python 3.10+ is required.

.. end requirements

## Bug Reporting

.. start bug-reporting

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

.. end bug-reporting

## **Details **

<dl>

<dt>Version</dt>
<dd>5.1.3</dd>

<dt>License</dt>
<dd>MIT</dd>

<dt>Python</dt>
<dd>&gt;=3.10</dd>

<dt>Maintainer</dt>
<dd>Cole Maclean &lt;hi@colemaclean.dev&gt;</dd></dl>

## **Links**

- [Changelog](https://github.com/cole/aiosmtplib/blob/main/CHANGELOG.rst)
- [Documentation](https://aiosmtplib.readthedocs.io/en/stable/)
- [GitHub](https://github.com/cole/aiosmtplib)
- [View on PyPI](https://pypi.org/project/aiosmtplib/)

## **Release Cadence **

**4**

releases in the past year

avg 103 days between releases

## **Maintainers **

- Cole Maclean · [hi@colemaclean.dev](mailto:hi@colemaclean.dev)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/aiosmtplib#webpage","@type":"WebPage","description":"asyncio SMTP client","name":"aiosmtplib","url":"https://pypx.app/packages/aiosmtplib","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/aiosmtplib"]}]},{"@id":"https://pypx.app/packages/aiosmtplib#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"asyncio SMTP client","license":"MIT","name":"aiosmtplib","softwareVersion":"5.1.3"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
