| 1 |
API Reference |
| 2 |
============= |
| 3 |
|
| 4 |
.. testsetup:: |
| 5 |
|
| 6 |
import aiosmtplib |
| 7 |
from aiosmtplib import SMTPResponse |
| 8 |
|
| 9 |
|
| 10 |
The send Coroutine |
| 11 |
------------------ |
| 12 |
|
| 13 |
Use the :func:`aiosmtplib.send` coroutine in most cases when you want to send a message. |
| 14 |
|
| 15 |
.. autofunction:: aiosmtplib.send |
| 16 |
|
| 17 |
|
| 18 |
The SMTP Class |
| 19 |
-------------- |
| 20 |
|
| 21 |
The lower level :class:`aiosmtplib.SMTP` class gives you more control over the SMTP connection. |
| 22 |
|
| 23 |
.. autoclass:: aiosmtplib.SMTP |
| 24 |
:members: |
| 25 |
:inherited-members: |
| 26 |
|
| 27 |
.. automethod:: aiosmtplib.SMTP.__init__ |
| 28 |
|
| 29 |
|
| 30 |
Server Responses |
| 31 |
---------------- |
| 32 |
|
| 33 |
.. autoclass:: aiosmtplib.response.SMTPResponse |
| 34 |
:members: |
| 35 |
|
| 36 |
|
| 37 |
Status Codes |
| 38 |
------------ |
| 39 |
|
| 40 |
.. autoclass:: aiosmtplib.typing.SMTPStatus |
| 41 |
:members: |
| 42 |
:undoc-members: |
| 43 |
|
| 44 |
|
| 45 |
Exceptions |
| 46 |
---------- |
| 47 |
|
| 48 |
.. automodule:: aiosmtplib.errors |
| 49 |
:members: |
| 50 |
:show-inheritance: |