Function ft_sdk::send_email
source · pub fn send_email(
conn: &mut Connection,
from: (&str, &str),
to: Vec<(&str, &str)>,
subject: &str,
body_html: &str,
body_text: &str,
reply_to: Option<Vec<(&str, &str)>>,
cc: Option<Vec<(&str, &str)>>,
bcc: Option<Vec<(&str, &str)>>,
mkind: &str
) -> Result<(), EmailError>Expand description
add a email sending request to the queue requests get picked up by the email worker
§Arguments
from- (name, email)to- Vec<(name, email)>subject- email subjectbody_html- email body in html formatbody_text- email body in text formatreply_to- (name, email)mkind- mail kind, used for logical logging purposescc,bcc- Vec<(name, email)>