summaryrefslogtreecommitdiffstats
path: root/modules/mailer
diff options
context:
space:
mode:
authorMichel Roux <xefir@crystalyx.net>2014-10-08 09:37:54 +0200
committerMichel Roux <xefir@crystalyx.net>2014-10-08 18:29:02 +0200
commit6705559ce08326381c12791d269e8179ac44d531 (patch)
treeed54cffbb12b95a5b9cd32bee125d9713895b8ea /modules/mailer
parentfc18741cc78acbb6fac5cf89fa5ae7034178c5ca (diff)
downloadgitea-6705559ce08326381c12791d269e8179ac44d531.tar.gz
gitea-6705559ce08326381c12791d269e8179ac44d531.zip
Fix malformed address
Diffstat (limited to 'modules/mailer')
-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
}