summaryrefslogtreecommitdiffstats
path: root/models/mail.go
diff options
context:
space:
mode:
authorRémi Saurel <rems4e@users.noreply.github.com>2017-09-21 06:29:45 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-09-21 12:29:45 +0800
commit66bc0ac251f564491ed0a6d5d4cfa0a11af09303 (patch)
treefa07c36ff406ec748e628f64e997860a2802ee20 /models/mail.go
parent1fbfccb4fc9fc99405174b529206524179177474 (diff)
downloadgitea-66bc0ac251f564491ed0a6d5d4cfa0a11af09303.tar.gz
gitea-66bc0ac251f564491ed0a6d5d4cfa0a11af09303.zip
Fix sending mail with a non-latin display name. #2102 (#2559)
* Fix sending mail with a non-latin display name. #2102 Signed-off-by: Rémi Saurel <contact@remi-saurel.com> * Take into account the possibility that setting.MailService.From is in `name <email@address>` format. #2102 Signed-off-by: Rémi Saurel <contact@remi-saurel.com>
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 b7d24a06a1..afcddb6d23 100644
--- a/models/mail.go
+++ b/models/mail.go
@@ -167,7 +167,7 @@ func composeIssueCommentMessage(issue *Issue, doer *User, comment *Comment, tplN
log.Error(3, "Template: %v", err)
}
- msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.FromEmail), subject, content.String())
+ msg := mailer.NewMessageFrom(tos, doer.DisplayName(), setting.MailService.FromEmail, subject, content.String())
msg.Info = fmt.Sprintf("Subject: %s, %s", subject, info)
return msg
}