diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-10-08 12:30:59 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-10-08 12:30:59 -0400 |
commit | 54c9844d665cdd554ae8945aae2ee966df5ddfc4 (patch) | |
tree | 5ae82e82ac5c4684f72fd64887f2e5116b4a3b72 | |
parent | 8e8dfaf227effbd58d8ec156ee48bb89ce1c565f (diff) | |
parent | 6705559ce08326381c12791d269e8179ac44d531 (diff) | |
download | gitea-54c9844d665cdd554ae8945aae2ee966df5ddfc4.tar.gz gitea-54c9844d665cdd554ae8945aae2ee966df5ddfc4.zip |
Merge pull request #539 from Xefir/dev
Fix malformed address
-rw-r--r-- | modules/mailer/mailer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index 92cdfc7d6a..6397ccc41a 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -33,7 +33,7 @@ func (m Message) Content() string { } // create mail content - content := "From: " + m.From + "<" + m.User + + content := "From: \"" + m.From + "\" <" + m.User + ">\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body return content } |