diff options
Diffstat (limited to 'plugins/base/smtp.go')
-rw-r--r-- | plugins/base/smtp.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/base/smtp.go b/plugins/base/smtp.go index 50a2fd0..40967dc 100644 --- a/plugins/base/smtp.go +++ b/plugins/base/smtp.go @@ -172,6 +172,9 @@ func (msg *OutgoingMessage) WriteTo(w io.Writer) error { } h.Set("Message-Id", msg.MessageID) + if msg.MessageID == "" { + panic(fmt.Errorf("Attempting to send message without message ID")) + } mw, err := mail.CreateWriter(w, h) if err != nil { |