pub trait MailSender: Send + Sync {
// Required methods
fn send<'life0, 'async_trait>(
&'life0 self,
message: MailMessage,
) -> Pin<Box<dyn Future<Output = MailSendResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn as_any(&self) -> &dyn Any;
}Expand description
Product-neutral mail sender trait.
Required Methods§
Sourcefn send<'life0, 'async_trait>(
&'life0 self,
message: MailMessage,
) -> Pin<Box<dyn Future<Output = MailSendResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
message: MailMessage,
) -> Pin<Box<dyn Future<Output = MailSendResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends a fully rendered message.