Trait email::Sender

source ·
pub trait Sender {
    // Required method
    fn send<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        msg: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

The sender abstraction.

The sender trait abstracts the action of sending raw messages.

Required Methods§

source

fn send<'life0, 'life1, 'async_trait>( &'life0 mut self, msg: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Sends the given raw message.

The message needs to be a valid MIME Message. You can build one by compiling a template.

Implementors§