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>
Some(to_username.to_string()),
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)
.multipart(MultiPart::alternative_plain_html(
plain_text,