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 subject
  • body_html - email body in html format
  • body_text - email body in text format
  • reply_to - (name, email)
  • mkind - mail kind, used for logical logging purposes
  • cc, bcc - Vec<(name, email)>