pub trait EmailTransport: Send + Sync {
// Required method
fn send(
&self,
to: &str,
subject: &str,
body: &str,
) -> Result<(), EmailError>;
}Expand description
Pluggable email delivery backend.
Implemented for SMTP, SendGrid, SES, Resend, Stack0, etc.
The ConsoleTransport prints to stderr for local development.