From 44257e6b3c99f762c75e6b2be64ad37481d8f2be 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 1311ac2ed..8e7f4bba4 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 }