From 456d183ebca4725538fe69989266b677a1185adb Mon Sep 17 00:00:00 2001 From: Jesse Olson Date: Tue, 4 Aug 2020 23:54:44 +0000 Subject: Set Message-Id header --- plugins/base/smtp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/base/smtp.go b/plugins/base/smtp.go index 19c9e0b..dc8211e 100644 --- a/plugins/base/smtp.go +++ b/plugins/base/smtp.go @@ -138,7 +138,8 @@ func (msg *OutgoingMessage) WriteTo(w io.Writer) error { if msg.InReplyTo != "" { h.Set("In-Reply-To", msg.InReplyTo) } - // TODO: set Message-ID + + h.Set("Message-Id", mail.GenerateMessageID()) mw, err := mail.CreateWriter(w, h) if err != nil { -- cgit v1.2.3