Trait sendgrid_api::traits::MailOps
source · pub trait MailOps {
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<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
Self: 'async_trait;
}
Required Methods
sourcefn 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<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
Self: 'async_trait,
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<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
Self: 'async_trait,
Send a plain text email.
This is a nicer experience than using post
.