From 3a7d2c19959edcf6ef2710375d1de19ea4bd7afe Mon Sep 17 00:00:00 2001 From: RedrockJS Date: Wed, 2 Jul 2025 10:00:55 +0300 Subject: [PATCH] fix: error sending forms --- src/app/api/sendform/route.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/api/sendform/route.ts b/src/app/api/sendform/route.ts index a083b63..d1b9fb1 100644 --- a/src/app/api/sendform/route.ts +++ b/src/app/api/sendform/route.ts @@ -5,6 +5,8 @@ import { CORE } from '@shared/config/core'; async function sendMail(data: TBaseForm) { const { name, phone, message, form } = data; + console.log('🍒', CORE); + const formattedBody = ` @@ -18,7 +20,7 @@ async function sendMail(data: TBaseForm) { `; const transporter = nodemailer.createTransport({ - service: 'yandex', + service: 'Yandex', auth: { user: CORE.MAIL_USER, pass: CORE.MAIL_PASS,