Skip to content

Commit

Permalink
fix for new line
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed May 31, 2016
1 parent 94031ff commit aaecb9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emailer.go
Expand Up @@ -24,7 +24,7 @@ func SendEmail(outgoingEmail Outgoing) bool {
headers["From"] = from.String()
headers["To"] = to.String()
headers["Subject"] = subj
message := "\r\n"
message := ""
for k, v := range headers {
message += fmt.Sprintf("%s: %s\r\n", k, v)
}
Expand Down Expand Up @@ -64,7 +64,7 @@ func SendEmail(outgoingEmail Outgoing) bool {
return false
log.Panic(err)
}
_, err = w.Write([]byte(message))
_, err = w.Write([]byte("\r\n"+message))
if err != nil {
return false
log.Panic(err)
Expand Down

0 comments on commit aaecb9a

Please sign in to comment.