Browse Source

Set Message-Id header

master
Jesse Olson 3 years ago
committed by Simon Ser
parent
commit
456d183ebc
No known key found for this signature in database GPG Key ID: FDE7BE0E88F5E48
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      plugins/base/smtp.go

+ 2
- 1
plugins/base/smtp.go View File

@@ -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 {


Loading…
Cancel
Save