aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-10-08 12:30:59 -0400
committer无闻 <joe2010xtmf@163.com>2014-10-08 12:30:59 -0400
commit54c9844d665cdd554ae8945aae2ee966df5ddfc4 (patch)
tree5ae82e82ac5c4684f72fd64887f2e5116b4a3b72
parent8e8dfaf227effbd58d8ec156ee48bb89ce1c565f (diff)
parent6705559ce08326381c12791d269e8179ac44d531 (diff)
downloadgitea-54c9844d665cdd554ae8945aae2ee966df5ddfc4.tar.gz
gitea-54c9844d665cdd554ae8945aae2ee966df5ddfc4.zip
Merge pull request #539 from Xefir/dev
Fix malformed address
-rw-r--r--modules/mailer/mailer.go2
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
}