Merge pull request #25 from redrockjs/dev

fix: error sending forms
This commit was merged in pull request #25.
This commit is contained in:
Valeriy G.
2025-07-02 10:05:34 +03:00
committed by GitHub

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,