]> source.dussan.org Git - gitea.git/commitdiff
Fix malformed address
authorMichel Roux <xefir@crystalyx.net>
Wed, 8 Oct 2014 07:37:54 +0000 (09:37 +0200)
committerMichel Roux <xefir@crystalyx.net>
Wed, 8 Oct 2014 16:29:02 +0000 (18:29 +0200)
modules/mailer/mailer.go

index 92cdfc7d6a8311f478d68169b50554b70355b323..6397ccc41aa8311c7bfa3ebc0f34f4ce9ec23473 100644 (file)
@@ -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
 }