feat(mailer): add CONTACT_EMAIL environment variable for email sending

This commit is contained in:
Danel Kungla
2025-08-13 09:51:20 +03:00
parent 00bfb3574e
commit ce7b04fda8
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ export const sendCompanyOfferEmail = async (
language: string,
) => {
const { renderCompanyOfferEmail } = await import('@kit/email-templates');
const { html, subject, to } = await renderCompanyOfferEmail({
const { html, subject } = await renderCompanyOfferEmail({
language,
companyData: data,
});
@@ -19,7 +19,7 @@ export const sendCompanyOfferEmail = async (
await sendEmail({
subject,
html,
to,
to: process.env.CONTACT_EMAIL || '',
});
};