This commit is contained in:
2026-01-22 20:57:00 +00:00
parent 278f821328
commit f17840e16b
2 changed files with 4 additions and 3 deletions

View File

@@ -54,7 +54,6 @@ export async function POST(req: Request) {
);
}
// ✅ 2. ONLY NOW send emails
const transporter = nodemailer.createTransport({
host: process.env.SMTP_HOST!,
port: Number(process.env.SMTP_PORT),
@@ -65,7 +64,6 @@ export async function POST(req: Request) {
},
});
// Admin email
await transporter.sendMail({
from: `"Contact Form" <${process.env.SMTP_USER!}>`,
to: process.env.CONTACT_EMAIL!,
@@ -78,7 +76,6 @@ export async function POST(req: Request) {
`,
});
// Confirmation email
await transporter.sendMail({
from: `"4l3ks.com" <${process.env.SMTP_USER!}>`,
to: email,