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.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.1.tar.gz (50.1 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.1-py3-none-any.whl (66.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiosmtplib-1.1.1.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/4.15.0-1043-aws

File hashes

Hashes for aiosmtplib-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e22e6ea478d8795d7d407bb4064b87518494cac1c45c59b053b80637d5714c97
MD5 024a9399bbfeeb50dec1bc3c0eae650d
BLAKE2b-256 979830323130e8a56d58f4163fe4e0cdcb453fbfe9d835d2461a0121e8721648

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiosmtplib-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 66.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/4.15.0-1043-aws

File hashes

Hashes for aiosmtplib-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98f6127d3068aa7d1e49fe09f56f25c7a05af411d710f8f58f23ac08f76045fb
MD5 811f739c379e010ee0230027fcb98fcf
BLAKE2b-256 92b2bd041a61bc77dcd0bdff6ffeba6f95d7cae742efc621beb2a24eb94b5e79

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