Metadata-Version: 2.1
Name: async-sender
Version: 1.4.2
Summary: AsyncSender is a tiny module for SMTP mail sending, Inspired by Sender.
Home-page: http://github.com/bruziev/async_sender
Author: Bakhtiyor Ruziev
Author-email: bakhtiyor.ruziev@yandex.ru
License: UNKNOWN
Keywords: email,sender,smtp,asyncio
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: aiosmtplib (==1.1.3)

.. image:: https://img.shields.io/travis/com/theruziev/async_sender.svg?style=flat-square
        :target: https://travis-ci.com/theruziev/async_sender
.. image:: https://img.shields.io/codecov/c/github/theruziev/async_sender.svg?style=flat-square
        :target: https://codecov.io/gh/theruziev/async_sender
.. image:: https://img.shields.io/pypi/v/async_sender.svg?style=flat-square   
        :alt: PyPI   
        :target: https://pypi.org/project/async_sender/


AsyncSender provides a simple interface to set up a SMTP connection and send email messages asynchronously.


Installation
------------

Install with the following command

.. code-block:: bash

    pip install async_sender


Quickstart
----------

AsyncSender is really easy to use.  Emails are managed through a `Mail`
instance

.. code-block:: python

    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

.. code-block:: python

    from async_sender import Message

    msg = Message("demo subject", from_address="from@example.com",
                  to="to@example.com")





