Browse Source

Merge pull request #539 from Xefir/dev

Fix malformed address
无闻 10 years ago
parent
commit
54c9844d66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mailer/mailer.go

+ 1 - 1
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
 }