Skip to main content

AsyncSender is a tiny module for SMTP mail sending, Inspired by Sender.

Project description

https://img.shields.io/travis/com/theruziev/async_sender.svg?style=flat-square https://img.shields.io/codecov/c/github/theruziev/async_sender.svg?style=flat-square PyPI

AsyncSender provides a simple interface to set up a SMTP connection and send email messages asynchronously.

Installation

Install with the following command

pip install async_sender

Quickstart

AsyncSender is really easy to use. Emails are managed through a Mail instance

from async_sender import Mail
import asyncio


async def run():
    mail = Mail()

    await mail.send_message("Hello", from_address="from@example.com",
                            to="to@example.com", body="Hello world!")


asyncio.run(run())

Message

To send one message, we need to create a Message instance

from async_sender import Message

msg = Message("demo subject", from_address="from@example.com",
              to="to@example.com")

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

async_sender-3.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

async_sender-3.0.0-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file async_sender-3.0.0.tar.gz.

File metadata

  • Download URL: async_sender-3.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for async_sender-3.0.0.tar.gz
Algorithm Hash digest
SHA256 2a990e9119ab6670692d03d6a7f14f61af7d0dcda2674f6779d8d53fb2ff5da2
MD5 97f0ff85b959598a7ee96935ded34239
BLAKE2b-256 0854837e23ab4b757c655e6acff1707ccfa1aec1db7e243a1670afd93eb16097

See more details on using hashes here.

File details

Details for the file async_sender-3.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for async_sender-3.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29ec01ce1c7b1e405aab26ba47bc3a78fa585d8c96843691a5fa54359102bf80
MD5 22400f7c6d54c7b49211b369d66cc3af
BLAKE2b-256 65cfc0f1bbb9de7074c02a8cdb488a8286f025978c000afc6f94fbd333d3459e

See more details on using hashes here.

Supported by

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