Comment what .message_id(None) means using lettre

This commit is contained in:
Quentin Gliech
2026-02-17 11:50:32 +01:00
committed by GitHub
parent 9e50b5b744
commit 4bc281fe30

View File

@@ -53,6 +53,8 @@ impl Mailer {
Message::builder() Message::builder()
.from(self.from.clone()) .from(self.from.clone())
.reply_to(self.reply_to.clone()) .reply_to(self.reply_to.clone())
// By passing `None`, lettre generates a random message ID
// with a random UUID and the hostname for us
.message_id(None) .message_id(None)
} }