[#1728] normalized mailer.Message recipient fields

This commit is contained in:
Gani Georgiev
2023-02-01 22:07:46 +02:00
parent 69b80123de
commit 2378bc72c5
9 changed files with 98 additions and 42 deletions

View File

@@ -56,7 +56,7 @@ func SendAdminPasswordReset(app core.App, admin *models.Admin) error {
Name: app.Settings().Meta.SenderName,
Address: app.Settings().Meta.SenderAddress,
},
To: mail.Address{Address: admin.Email},
To: []mail.Address{{Address: admin.Email}},
Subject: "Reset admin password",
HTML: body,
}