AsyncSender is a tiny module for SMTP mail sending, Inspired by Sender.
Project description
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
Release history Release notifications | RSS feed
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-1.4.3.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for async_sender-1.4.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8433aeff27fc2652dd5b2b1eb72c16921e312fe0519114de28586d1f5bdf9eb3 |
|
MD5 | 5ac597daf0bf4269d3bc600a9e22bee5 |
|
BLAKE2b-256 | 394c8915f7ac56e8f45eaafb0adc57c42f3c6d0aa5ec93af1f1d12a71bdc1264 |