diff options
author | Unknwon <u@gogs.io> | 2016-08-11 06:17:45 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-11 06:17:45 -0700 |
commit | 0f26f3678ac2471b8d94770c3446d76220d9531b (patch) | |
tree | f68b96072d0d1e1f4732eef35789925faa8b4aee /models/mail.go | |
parent | 6a81632e36a1ba36d315059cfb69c063cab237f1 (diff) | |
download | gitea-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.go | 2 |
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 } |