Trait MailOps

Source
pub trait MailOps {
    // Required method
    fn send_plain_text<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
        &'life0 self,
        subject: &'life1 str,
        message: &'life2 str,
        to: &'life3 [String],
        cc: &'life4 [String],
        bcc: &'life5 [String],
        from: &'life6 str,
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, ClientError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait,
             'life6: 'async_trait;
}

Required Methods§

Source

fn send_plain_text<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>( &'life0 self, subject: &'life1 str, message: &'life2 str, to: &'life3 [String], cc: &'life4 [String], bcc: &'life5 [String], from: &'life6 str, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, ClientError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait,

Send a plain text email.

This is a nicer experience than using post.

Implementors§