mirror of https://github.com/jlelse/GoBlog
Set Content-Type for contact emails
This commit is contained in:
parent
92172d6404
commit
0af387930d
|
@ -79,6 +79,7 @@ func (*goBlog) sendContactEmail(cc *configContact, body, replyTo string) error {
|
|||
// Build email
|
||||
email := bufferpool.Get()
|
||||
defer bufferpool.Put(email)
|
||||
_, _ = email.WriteString("Content-Type: text/plain; charset=UTF-8\n")
|
||||
_, _ = fmt.Fprintf(email, "To: %s\n", cc.EmailTo)
|
||||
if replyTo != "" {
|
||||
_, _ = fmt.Fprintf(email, "Reply-To: %s\n", replyTo)
|
||||
|
|
Loading…
Reference in New Issue