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

1
.env
View File

@@ -44,6 +44,7 @@ NEXT_PUBLIC_REALTIME_NOTIFICATIONS=true
WEBHOOK_SENDER_PROVIDER=postgres
# MAILER DEV
CONTACT_EMAIL=info@medreport.ee
MAILER_PROVIDER=nodemailer
EMAIL_SENDER=info@medreport.ee
EMAIL_USER= # refer to your email provider's documentation

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 || '',
});
};