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 "aiosmtplib on pypy.tech" 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.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")

loop = asyncio.get_event_loop()
loop.run_until_complete(aiosmtplib.send(message, hostname="127.0.0.1", port=25))

Requirements

Python 3.5.2+, compiled with SSL support, is required.

Bug reporting

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

Project details


Download files

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

Source Distribution

aiosmtplib-1.1.7.tar.gz (57.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiosmtplib-1.1.7-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file aiosmtplib-1.1.7.tar.gz.

File metadata

  • Download URL: aiosmtplib-1.1.7.tar.gz
  • Upload date:
  • Size: 57.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.13.0-1023-aws

File hashes

Hashes for aiosmtplib-1.1.7.tar.gz
Algorithm Hash digest
SHA256 5810657a86b19476c93fa280c499ca3ef88ce26f2b74dae202989ae06377d107
MD5 26e20a1e6466acf3c04f3ebe65845d5a
BLAKE2b-256 5863bc29001e9427a58c156ea8efef31406cb59bda00e3e4b580452dc6c1fce6

See more details on using hashes here.

File details

Details for the file aiosmtplib-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: aiosmtplib-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.13.0-1023-aws

File hashes

Hashes for aiosmtplib-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c1403e70fce769643820cb2c5bf0bd4f7ea83a01c60e854c81a6f5d7ccff2656
MD5 e8122c4a8aae0d2ef50dd47c4c62ef47
BLAKE2b-256 b405f3b029a35c3f2173648b1759cb0d88df1001b31b6910ea3e23b64f6e0d12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page