small improvement
This commit is contained in:
parent
90efec3c6e
commit
f0621dac2e
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
Ŝarĝante…
Reference in New Issue