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

Required Methods§

source

fn send_email(&self, address: &str, contents: &str) -> Result<(), EmailError>

Sends an email to and from the specified address.

Implementors§