diff options
author | Michel Roux <xefir@crystalyx.net> | 2014-10-08 09:37:54 +0200 |
---|---|---|
committer | Michel Roux <xefir@crystalyx.net> | 2014-10-08 18:29:02 +0200 |
commit | 6705559ce08326381c12791d269e8179ac44d531 (patch) | |
tree | ed54cffbb12b95a5b9cd32bee125d9713895b8ea /modules/mailer | |
parent | fc18741cc78acbb6fac5cf89fa5ae7034178c5ca (diff) | |
download | gitea-6705559ce08326381c12791d269e8179ac44d531.tar.gz gitea-6705559ce08326381c12791d269e8179ac44d531.zip |
Fix malformed address
Diffstat (limited to 'modules/mailer')
-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 } |