pub trait EmailSender:
Send
+ Sync
+ 'static {
// Required method
fn send<'a>(
&'a self,
email: &'a Email,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>;
}Expand description
Trait for sending emails from handler contexts.
Implemented by the runtime for SMTP and HTTP-based providers (Resend, SES). Mocked in test contexts.