summaryrefslogtreecommitdiffstats
path: root/models/mail.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-11 06:17:45 -0700
committerUnknwon <u@gogs.io>2016-08-11 06:17:45 -0700
commit0f26f3678ac2471b8d94770c3446d76220d9531b (patch)
treef68b96072d0d1e1f4732eef35789925faa8b4aee /models/mail.go
parent6a81632e36a1ba36d315059cfb69c063cab237f1 (diff)
downloadgitea-0f26f3678ac2471b8d94770c3446d76220d9531b.tar.gz
gitea-0f26f3678ac2471b8d94770c3446d76220d9531b.zip
#3279 use doer email for FROM field of issues
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 6daf84f231..1311ac2ed2 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.NewMessage(tos, subject, content)
+ msg := mailer.NewMessageFrom(tos, doer.Email, subject, content)
msg.Info = fmt.Sprintf("Subject: %s, %s", subject, info)
return msg
}