mirror of
https://github.com/go-gitea/gitea
synced 2025-08-14 05:28:27 +00:00
* 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>
This commit is contained in:
committed by
Lauris BH
parent
f40ba68d57
commit
33e164168f
@@ -1281,6 +1281,7 @@ type Mailer struct {
|
||||
QueueLength int
|
||||
Name string
|
||||
From string
|
||||
FromName string
|
||||
FromEmail string
|
||||
SendAsPlainText bool
|
||||
|
||||
@@ -1339,6 +1340,7 @@ func newMailService() {
|
||||
if err != nil {
|
||||
log.Fatal(4, "Invalid mailer.FROM (%s): %v", MailService.From, err)
|
||||
}
|
||||
MailService.FromName = parsed.Name
|
||||
MailService.FromEmail = parsed.Address
|
||||
|
||||
log.Info("Mail Service Enabled")
|
||||
|
Reference in New Issue
Block a user