mirror of https://github.com/LemmyNet/lemmy.git
Update message_id to comply with RFC 2822 (#2668)
The RFC 2822 format standard requires the message ID to be enclosed within angle brackets. If the standard is not followed, SpamAssassin deducts points from the e-mail. Co-authored-by: Dessalines <dessalines@users.noreply.github.com>fix-release-script-paths
parent
70c549dad8
commit
c416e4ce14
|
@ -58,7 +58,7 @@ pub fn send_email(
|
||||||
Some(to_username.to_string()),
|
Some(to_username.to_string()),
|
||||||
Address::from_str(to_email).expect("email to address isn't valid"),
|
Address::from_str(to_email).expect("email to address isn't valid"),
|
||||||
))
|
))
|
||||||
.message_id(Some(format!("{}@{}", Uuid::new_v4(), settings.hostname)))
|
.message_id(Some(format!("<{}@{}>", Uuid::new_v4(), settings.hostname)))
|
||||||
.subject(subject)
|
.subject(subject)
|
||||||
.multipart(MultiPart::alternative_plain_html(
|
.multipart(MultiPart::alternative_plain_html(
|
||||||
plain_text,
|
plain_text,
|
||||||
|
|
Loading…
Reference in New Issue