fix: use nodemailer address object for proper UTF-8 encoding in from name

This commit is contained in:
BOHA
2026-03-23 12:55:32 +01:00
parent 9f36ad0985
commit 20c1aab14c

View File

@@ -12,7 +12,7 @@ export async function sendMail(to: string, subject: string, html: string): Promi
try {
await transporter.sendMail({
from: `${config.email.smtpFromName} <${from}>`,
from: { name: config.email.smtpFromName, address: from },
to,
subject,
html,