From 96f92e6105463c37a11cd09ecf1fdb4d5c0cb905 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 11 Aug 2016 15:16:01 -0700 Subject: [PATCH] Fix email FROM --- models/mail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/mail.go b/models/mail.go index 1311ac2ed2..8e7f4bba40 100644 --- a/models/mail.go +++ b/models/mail.go @@ -160,7 +160,7 @@ func composeIssueMessage(issue *Issue, doer *User, tplName base.TplName, tos []s if err != nil { log.Error(3, "HTMLString (%s): %v", tplName, err) } - msg := mailer.NewMessageFrom(tos, doer.Email, subject, content) + msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.User), subject, content) msg.Info = fmt.Sprintf("Subject: %s, %s", subject, info) return msg }