diff options
author | Unknwon <u@gogs.io> | 2016-08-11 15:16:01 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-11 15:16:01 -0700 |
commit | 96f92e6105463c37a11cd09ecf1fdb4d5c0cb905 (patch) | |
tree | e42a5eb3069e5dd6dc8c58a5f32a39dcfd2b9301 /models/mail.go | |
parent | a47aef546040b5eeb4af84d691c164171aafda08 (diff) | |
download | gitea-96f92e6105463c37a11cd09ecf1fdb4d5c0cb905.tar.gz gitea-96f92e6105463c37a11cd09ecf1fdb4d5c0cb905.zip |
Fix email FROM
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 1311ac2ed2..8e7f4bba40 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 } |