Debian Codegraph @

README.rst

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