An SMTP client and server library for Zig implementing RFC 5321.
1??? 220
2NOOP
3??? 250
4rhubarb
5??? 500
6mail from:<x@y>
7??? 503
8rcpt to:<a@b>
9??? 503
10ehlo test.client
11??? 250-
12??? 250-PIPELINING
13??? 250-8BITMIME
14??? 250-CHUNKING
15??? 250-BINARYMIME
16??? 250-SMTPUTF8
17??? 250-ENHANCEDSTATUSCODES
18??? 250-DSN
19??? 250 SIZE
20mail
21??? 501
22mail from:
23??? 501
24mail from:<>
25??? 250
26mail from:<x@y>
27??? 503
28rcpt to:
29??? 501
30data
31??? 503
32rset
33??? 250
34etrn abc
35??? 500
36vrfy userx
37??? 252
38help
39??? 214
40mail from:<ok@test1> SIZE=100 BODY=8BITMIME
41??? 250
42rcpt to:<userx@test.ex>
43??? 250
44rcpt to:<@relay.example:route@test.ex>
45??? 250
46data
47??? 354
48..that line started with a dot
49.. and one starting with two dots
50Message body
51.
52??? 250
53mail from:<a@b> SIZE=99999999
54??? 552
55mail from:<a@b> BODY=BINARY
56??? 555
57mail from:<a@b> FOO=bar
58??? 555
59mail from:<a@b> SIZE=nan
60??? 501
61starttls
62??? 502
63mail from:<böb@test.ex>
64??? 553
65mail from:<a@b> SMTPUTF8=YES
66??? 501
67mail from:<böb@test.ex> SMTPUTF8
68??? 250
69rset
70??? 250
71BDAT 5
72abc
73??? 503
74mail from:<chunky@test.ex>
75??? 250
76rcpt to:<userx@test.ex>
77??? 250
78BDAT 7
79hello
80??? 250
81BDAT 23 LAST
82world of chunked mail
83??? 250
84quit
85??? 221