V
V
Vadim Timoshenko2020-01-29 14:38:08
1C-Bitrix
Vadim Timoshenko, 2020-01-29 14:38:08

Where is the code that sends mail to 1C-Bitrix?

Got a site on Bitrix. Web forms are not sent, although there are a lot of templates in the admin panel.
I found the code for submitting forms in CRM inside init.php.

If I understand correctly - in the same place, in principle, I can use my php code to send mail with the mail () function.

But I do not like this situation, it seems to me that this is not true. After all, there are templates for email messages. Where is the file responsible for sending mail in Bitrix, please tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Prokhorov, 2020-01-29
@PbI6A_KuT

Email message templates are associated with events and sent based on them. To trigger an event in the old kernel, the CEvent::Send method is used, in the new (d7) \Bitrix\Main\Mail\Event::send()
CEvent::Send()
\Bitrix\Main\Mail\Event::send( )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question