Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Commit

Permalink
fix(smtp): fix smtp data line break
Browse files Browse the repository at this point in the history
fix smtp data line break

Signed-off-by: mritd <[email protected]>
  • Loading branch information
mritd committed Oct 9, 2018
1 parent c4fca3d commit 919fcac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/alarm/smtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 919fcac

Please sign in to comment.