forked from kevadesu/forgejo
* 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:
parent
1fbfccb4fc
commit
66bc0ac251
3 changed files with 6 additions and 4 deletions
|
@ -1287,6 +1287,7 @@ type Mailer struct {
|
|||
QueueLength int
|
||||
Name string
|
||||
From string
|
||||
FromName string
|
||||
FromEmail string
|
||||
SendAsPlainText bool
|
||||
|
||||
|
@ -1345,6 +1346,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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue