Trait EmailProvider

Source
pub trait EmailProvider {
    // Required method
    fn send_email(
        &self,
        from_address: &str,
        recipient_addresses: Vec<&str>,
        subject: &str,
        contents: &str,
    ) -> Result<(), EmailError>;
}

Required Methods§

Source

fn send_email( &self, from_address: &str, recipient_addresses: Vec<&str>, subject: &str, contents: &str, ) -> Result<(), EmailError>

Sends an email to and from the specified address.

Implementors§