1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
aiosmtplib
==========
aiosmtplib is an asynchronous SMTP client for use with asyncio.
For documentation, see `Read The Docs`_.
Quickstart
----------
..
start quickstart
.. code-block:: python
import asyncio
from email.message import EmailMessage
import aiosmtplib
message = EmailMessage()
message["From"] = "root@localhost"
message["To"] = "somebody@example.com"
message["Subject"] = "Hello World!"
message.set_content("Sent via aiosmtplib")
asyncio.run(aiosmtplib.send(message, hostname="127.0.0.1", port=25))
..
end quickstart
Requirements
------------
..
start requirements
Python 3.9+ is required.
..
end requirements
Bug Reporting
-------------
..
start bug-reporting
Bug reports (and feature requests) are welcome via `Github issues`_.
.. _Github issues: https://github.com/cole/aiosmtplib/issues
..
end bug-reporting
.. _Read The Docs: https://aiosmtplib.readthedocs.io/en/stable/
|