// подключение служебной части пролога
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
$event = new CEvent;
$arEventFields = array(
"QUESTION_ID" => $_REQUEST['form_dropdown_SIMPLE_QUESTION_658'],
"FIO" => $_REQUEST['form_text_708'],
"E_MAIL" => $_REQUEST['form_email_709'],
"PHONE" => $_REQUEST['form_text_710'],
"QUESTION" => $_REQUEST['form_textarea_711'],
"RS_DATE_CREATE" => date("d.m.Y H:i:s")
);
$rez = $event->Send($SpecType, "to", $arEventFields, "Y", "");
|