fix: error sending forms
This commit is contained in:
@@ -5,6 +5,8 @@ import { CORE } from '@shared/config/core';
|
|||||||
async function sendMail(data: TBaseForm) {
|
async function sendMail(data: TBaseForm) {
|
||||||
const { name, phone, message, form } = data;
|
const { name, phone, message, form } = data;
|
||||||
|
|
||||||
|
console.log('🍒', CORE);
|
||||||
|
|
||||||
const formattedBody = `
|
const formattedBody = `
|
||||||
<html lang="ru-RU">
|
<html lang="ru-RU">
|
||||||
<body>
|
<body>
|
||||||
@@ -18,7 +20,7 @@ async function sendMail(data: TBaseForm) {
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const transporter = nodemailer.createTransport({
|
const transporter = nodemailer.createTransport({
|
||||||
service: 'yandex',
|
service: 'Yandex',
|
||||||
auth: {
|
auth: {
|
||||||
user: CORE.MAIL_USER,
|
user: CORE.MAIL_USER,
|
||||||
pass: CORE.MAIL_PASS,
|
pass: CORE.MAIL_PASS,
|
||||||
|
|||||||
Reference in New Issue
Block a user