![]() |
MantisBase v0.4.9
|
Functions | |
| void | deliver (const MbSmtpConfig &config, const std::string &mailFrom, const std::string &rcptTo, std::string payload) |
| void mb::smtp_detail::deliver | ( | const MbSmtpConfig & | config, |
| const std::string & | mailFrom, | ||
| const std::string & | rcptTo, | ||
| std::string | payload ) |
Deliver one RFC 5322 message over SMTP. The TCP connection is a trantor TcpClient. TLS (implicit on port 465, otherwise STARTTLS) is performed with wolfSSL because trantor is built without its own TLS provider.
| mailFrom | Envelope sender, without angle brackets. |
| rcptTo | Envelope recipient, without angle brackets. |
| payload | Bytes to send after the server accepts DATA, including the terminating .\r\n. |
| MbException | 502 on DNS, connection, TLS, or protocol failure. |