Rust

Undocumented.

Contents

use utopia_messaging::email::smtp::Host;
Rust
pub struct Host

A server to try: host (an address literal stays bracketed), port and encryption.

use utopia_messaging::email::smtp::Mock;
Rust
pub struct Mock

The 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 NoHostAnswered

Every 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 Smtp

An 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.