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.

Source Distribution

async_sender-1.4.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

async_sender-1.4.2-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: async_sender-1.4.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.3

File hashes

Hashes for async_sender-1.4.2.tar.gz
Algorithm Hash digest
SHA256 8e3941bd56abc2654f3b928c5144f1a55534a1b7386f7c5f492ef8261a9507b9
MD5 e9d18e2a9554be2cbcdb27758d5633f8
BLAKE2b-256 927d04ac44e4085f03ecd8d54a132da2da16d754791c9f6058aef5f293e040b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async_sender-1.4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.3

File hashes

Hashes for async_sender-1.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3fc5424428e1ca6eba1014b4e07636f644618fe5bc7aa46e562b449e6647d159
MD5 33e0a54c055a482fad3f22a567b89282
BLAKE2b-256 e6e70c364ce913a322767ae33a06a58ecc832a3db3f4a72ad6d5b62deb178f93

See more details on using hashes here.

Supported by

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