AsyncSender is a tiny module for SMTP mail sending, Inspired by Sender.
Project description
AsyncSender provides a simple interface to set up SMTP and send asynchronously email messages.
Installation
Install with the following command:
$ pip install async_sender
Quickstart
Sender 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.3.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for async_sender-1.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18ed49df1b0728d4d2663645e1866ef3b5fe89b22e6804935466a2905094ab82 |
|
MD5 | 2da55862dbf72e1443523cd8f156270e |
|
BLAKE2b-256 | faec15eb4c4d69fadb573c8aa79c68c953171797d73f9845785382712d9b848d |