small improvement
This commit is contained in:
@@ -40,7 +40,10 @@ export default async function sendChangeEmailVerificationRequest(
|
|||||||
const emailTemplate = Handlebars.compile(templateFile);
|
const emailTemplate = Handlebars.compile(templateFile);
|
||||||
|
|
||||||
transporter.sendMail({
|
transporter.sendMail({
|
||||||
from: process.env.EMAIL_FROM,
|
from: {
|
||||||
|
name: "Linkwarden",
|
||||||
|
address: process.env.EMAIL_FROM as string,
|
||||||
|
},
|
||||||
to: newEmail,
|
to: newEmail,
|
||||||
subject: "Verify your new Linkwarden email address",
|
subject: "Verify your new Linkwarden email address",
|
||||||
html: emailTemplate({
|
html: emailTemplate({
|
||||||
|
|||||||
@@ -20,7 +20,10 @@ export default async function sendVerificationRequest(
|
|||||||
const { host } = new URL(url);
|
const { host } = new URL(url);
|
||||||
const result = await transporter.sendMail({
|
const result = await transporter.sendMail({
|
||||||
to: identifier,
|
to: identifier,
|
||||||
from: provider.from,
|
from: {
|
||||||
|
name: "Linkwarden",
|
||||||
|
address: provider.from as string,
|
||||||
|
},
|
||||||
subject: `Please verify your email address`,
|
subject: `Please verify your email address`,
|
||||||
text: text({ url, host }),
|
text: text({ url, host }),
|
||||||
html: emailTemplate({
|
html: emailTemplate({
|
||||||
|
|||||||
Reference in New Issue
Block a user