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

loop = asyncio.get_event_loop()

mail = Mail()

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

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.

Files for async-sender, version 1.4.3
Filename, size File type Python version Upload date Hashes
Filename, size async_sender-1.4.3-py2.py3-none-any.whl (6.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size async_sender-1.4.3.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page