fix(mail,ci): restore mail hardening, contact env parsing, and ci tag validation
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 17s
Build & Deploy / 🧪 QA (push) Successful in 2m48s
Build & Deploy / 🏗️ Build (push) Failing after 1h35m52s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled

This commit is contained in:
2026-04-10 23:15:13 +02:00
parent 73542237d5
commit a4df12ddb3
2 changed files with 8 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
'use server';
import { sendEmail } from '@/lib/mail/mailer';
import { env } from '@/lib/env';
import { render, ContactFormNotification, ConfirmationMessage } from '@mintel/mail';
import React from 'react';
import { getServerAppServices } from '@/lib/services/create-services.server';
@@ -86,7 +87,7 @@ export async function sendContactFormAction(formData: FormData) {
);
if (!isTestSubmission) {
logger.info('Sending internal notification', { recipients: config.mail.recipients });
logger.info('Sending internal notification', { recipients: env.MAIL_RECIPIENTS });
const notificationResult = await sendEmail({
replyTo: email,
subject: notificationSubject,
@@ -101,14 +102,14 @@ export async function sendContactFormAction(formData: FormData) {
logger.error('Notification email DELIVERY FAILED', {
error: notificationResult.error,
subject: notificationSubject,
recipients: config.mail.recipients,
recipients: env.MAIL_RECIPIENTS,
});
services.errors.captureException(
new Error(`Notification email failed: ${notificationResult.error}`),
{
action: 'sendContactFormAction_notification',
email,
recipients: config.mail.recipients
recipients: env.MAIL_RECIPIENTS
},
);
}