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
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
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-2.0.0.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for async_sender-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04fef778de4ffaafdb833b551504463cbdf13b0781655df20aec91150ca2a29 |
|
MD5 | f4ffbbb3e71646a5155dea923043713c |
|
BLAKE2b-256 | c2cc67b854345eee7c6f04ea2920361328d986b71a2fa228cb6d54f1d0718376 |