summaryrefslogtreecommitdiffstats
path: root/models/mail.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-09-07 11:19:44 +0200
committerSandro Santilli <strk@kbt.io>2016-11-02 21:00:54 +0100
commitaf03d00780a6ee70c58e135c6679542cde4f8d50 (patch)
tree5aa8f9cdb9dd7e85da3d559dfcde2d7f231366f4 /models/mail.go
parent5c5424301443ffa3659737d12de48ab1dfe39a00 (diff)
downloadgitea-af03d00780a6ee70c58e135c6679542cde4f8d50.tar.gz
gitea-af03d00780a6ee70c58e135c6679542cde4f8d50.zip
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 https://github.com/gogits/gogs/issues/3615
Diffstat (limited to 'models/mail.go')
-rw-r--r--models/mail.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/mail.go b/models/mail.go
index 0db21355a8..85f1560b44 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.FromEmail), subject, content)
msg.Info = fmt.Sprintf("Subject: %s, %s", subject, info)
return msg
}