diff options
author | Peter <peter@smitmail.eu> | 2014-12-19 22:33:17 +0200 |
---|---|---|
committer | Peter <peter@smitmail.eu> | 2014-12-19 22:33:17 +0200 |
commit | 2321b4b272c568ebcebf993c051c8ab60f651748 (patch) | |
tree | 7d93551f715eb53a5f5764e9fafed8b27060b9ea /modules/mailer | |
parent | b231b8c927d02c02466ea67742b63d2d67722bed (diff) | |
download | gitea-2321b4b272c568ebcebf993c051c8ab60f651748.tar.gz gitea-2321b4b272c568ebcebf993c051c8ab60f651748.zip |
Change from header in email, fixes #765
Diffstat (limited to 'modules/mailer')
-rw-r--r-- | modules/mailer/mailer.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index 211ad59cdd..22f403ee51 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -35,8 +35,7 @@ func (m Message) Content() string { } // create mail content - content := "From: \"" + m.From + "\" <" + m.User + - ">\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body + content := "From: " + m.From +"\r\nSubject: " + m.Subject + "\r\nContent-Type: " + contentType + "\r\n\r\n" + m.Body return content } |