Socket
Socket
Sign inDemoInstall

sd-aiosmtplib

Package Overview
Dependencies
3
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sd-aiosmtplib

asyncio SMTP client


Maintainers
1

Readme

aiosmtplib

|circleci| |codecov| |pypi-version| |pypi-python-versions| |pypi-status| |downloads| |pypi-license| |black|


aiosmtplib is an asynchronous SMTP client for use with asyncio.

For documentation, see Read The Docs_.

Quickstart

.. code-block:: 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")

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.

.. |circleci| image:: https://circleci.com/gh/cole/aiosmtplib/tree/main.svg?style=shield :target: https://circleci.com/gh/cole/aiosmtplib/tree/main :alt: "aiosmtplib CircleCI build status" .. |pypi-version| image:: https://img.shields.io/pypi/v/aiosmtplib.svg :target: https://pypi.python.org/pypi/aiosmtplib :alt: "aiosmtplib on the Python Package Index" .. |pypi-python-versions| image:: https://img.shields.io/pypi/pyversions/aiosmtplib.svg .. |pypi-status| image:: https://img.shields.io/pypi/status/aiosmtplib.svg .. |pypi-license| image:: https://img.shields.io/pypi/l/aiosmtplib.svg .. |codecov| image:: https://codecov.io/gh/cole/aiosmtplib/branch/main/graph/badge.svg :target: https://codecov.io/gh/cole/aiosmtplib .. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black :alt: "Code style: black" .. |downloads| image:: https://pepy.tech/badge/aiosmtplib :target: https://pepy.tech/project/aiosmtplib :alt: "aiosmtplib on pypy.tech" .. _Read The Docs: https://aiosmtplib.readthedocs.io/en/stable/overview.html

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc