diff --git a/pkg/alarm/smtp.go b/pkg/alarm/smtp.go index 855b286..714fc3b 100644 --- a/pkg/alarm/smtp.go +++ b/pkg/alarm/smtp.go @@ -93,9 +93,9 @@ func (cfg *SMTPConfig) composeMsg(to string, subject string, body string) (messa headers["Subject"] = subject // Setup message for k, v := range headers { - message += fmt.Sprintf("%s: %s\r", k, v) + message += fmt.Sprintf("%s: %s\r\n", k, v) } - message += "\r" + body + message += "\r\n" + body return message }