fix: error sending forms

This commit is contained in:
2025-07-02 10:00:55 +03:00
parent 64166ce960
commit 3a7d2c1995

View File

@@ -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 = `
<html lang="ru-RU">
<body>
@@ -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,