Setting e-mail web address in email module.

This commit is contained in:
2026-07-22 06:02:42 +02:00
parent 5784c08e1b
commit 88b866c96a
3 changed files with 6 additions and 3 deletions

View File

@@ -20,7 +20,12 @@ const resend = (() => {
})();
export async function renderEmail(template, { to, subject, props }) {
const { html, text } = await emailTemplates.render(`${template}.vue`, { props });
const { html, text } = await emailTemplates.render(`${template}.vue`, {
props: {
...props,
address: config.web.address,
},
});
return {
from: config.email.from,