pub trait EmailProvider {
// Required method
fn send_email(
&self,
from_address: &str,
recipient_addresses: Vec<&str>,
subject: &str,
contents: &str,
) -> Result<(), EmailError>;
}
Required Methods§
Sourcefn send_email(
&self,
from_address: &str,
recipient_addresses: Vec<&str>,
subject: &str,
contents: &str,
) -> Result<(), EmailError>
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.