small improvement

This commit is contained in:
daniel31x13 2024-05-17 03:15:18 -04:00
parent 90efec3c6e
commit f0621dac2e
2 changed files with 8 additions and 2 deletions

View File

@ -40,7 +40,10 @@ export default async function sendChangeEmailVerificationRequest(
const emailTemplate = Handlebars.compile(templateFile);
transporter.sendMail({
from: process.env.EMAIL_FROM,
from: {
name: "Linkwarden",
address: process.env.EMAIL_FROM as string,
},
to: newEmail,
subject: "Verify your new Linkwarden email address",
html: emailTemplate({

View File

@ -20,7 +20,10 @@ export default async function sendVerificationRequest(
const { host } = new URL(url);
const result = await transporter.sendMail({
to: identifier,
from: provider.from,
from: {
name: "Linkwarden",
address: provider.from as string,
},
subject: `Please verify your email address`,
text: text({ url, host }),
html: emailTemplate({