B
B
Barders2022-01-30 13:18:54
1C-Bitrix
Barders, 2022-01-30 13:18:54

How to send emails through the bitrix:main.feedback component?

Hi all.
I decided to make a callback form through the bitrix:main.feedback component%

<?$APPLICATION->IncludeComponent("bitrix:main.feedback","zvonok",Array(
            "USE_CAPTCHA" => "Y",
            "OK_TEXT" => "Спасибо, ваше сообщение принято.",
            "EMAIL_TO" => "[email protected]",
             "AJAX_MODE" => "Y",
                "AJAX_OPTION_SHADOW" => "N",
                "AJAX_OPTION_JUMP" => "N",
                "AJAX_OPTION_STYLE" => "Y",
                "AJAX_OPTION_HISTORY" => "N",
                "REQUIRED_FIELDS" => array(
              0 => "NAME",
              1 => "user_phone"

            ),
            "EVENT_MESSAGE_ID" => Array("32")
          )
        );?>


Writes that the message is accepted, but nothing comes to the mail.
installed the component sending letters via SMTP module works. but the component is not working.
I don't even know where the logs are to see what's wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Edward, 2022-01-30
@Drayde

We look at which mail template is used in the component. See if a record is being created in the b_event table. We look at the logs of the standard msmtp mailer, or the left module for sending letters. If there is no letter at some step, debug step by step starting from the bitrix:main.feedback component

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question