1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use crate::Mailer;

pub fn send(mailer: &Mailer, to_email: &str) {
    let subject = "Your password was changed)";
    let text = format!(
        r#"
(This is an automated message.)

Hello,

Your password was changed successfully!
"#
    );
    let html = format!(
        r#"
(This is an automated message.)

Hello,

Your password was changed successfully!
"#
    );

    mailer.send(to_email, &subject, &text, &html);
}