From e85e850d5ade1ab6fd496253efd347c0b1d8b4ca Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 7 Sep 2016 11:19:44 +0200 Subject: [PATCH] Fix sender of issue notifications It is the FROM field in mailer configuration that needs be used, not the USER field, which is for authentication. Closes #3615 --- models/mail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/mail.go b/models/mail.go index 0db21355a8a..7f5e81a474a 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, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.User), subject, content) + msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.From), subject, content) msg.Info = fmt.Sprintf("Subject: %s, %s", subject, info) return msg }