Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question