Skip to main content

MailSender

Trait MailSender 

Source
pub trait MailSender: Send + Sync {
    // Required method
    fn send(&self, message: Message) -> BoxFuture<'_, Result<()>>;
}
Expand description

Sends one e-mail (SMTP in production, a recorder in tests).

Required Methods§

Source

fn send(&self, message: Message) -> BoxFuture<'_, Result<()>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§