smtp
ModuleUndocumented.
Contents
Structs
HostA server to try: host (an address literal stays bracketed), port and encryption.MockThe SMTP adapter pointed at a mail catcher: no credentials, no encryption, `X-Mailer: Utopia Mailer`, and named `Mock`.NoHostAnsweredEvery host in the list failed before a session was open: the message names each host's failure, and `permanent` says whether trying the list again can go differently (only when every host refused for good).SmtpAn SMTP relay: one or several hosts tried in order, with STARTTLS or implicit TLS, PLAIN or LOGIN authentication, and optionally a session kept open across sends. Every recipient gets the server's own answer.use utopia_messaging::email::smtp::Host;Rust
pub struct HostA server to try: host (an address literal stays bracketed), port and encryption.
use utopia_messaging::email::smtp::Mock;Rust
pub struct MockThe SMTP adapter pointed at a mail catcher: no credentials, no
encryption, X-Mailer: Utopia Mailer, and named Mock.
use utopia_messaging::email::smtp::NoHostAnswered;Rust
pub struct NoHostAnsweredEvery host in the list failed before a session was open: the message
names each host's failure, and permanent says whether trying the list
again can go differently (only when every host refused for good).
use utopia_messaging::email::smtp::Smtp;Rust
pub struct SmtpAn SMTP relay: one or several hosts tried in order, with STARTTLS or implicit TLS, PLAIN or LOGIN authentication, and optionally a session kept open across sends. Every recipient gets the server's own answer.
Also implements
Debug.