<?require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
$arEventFields = array(
"AUTHOR" => htmlspecialcharsEx($_REQUEST['user_name']),
"AUTHOR_EMAIL" => htmlspecialcharsEx($_REQUEST['user_email']),
"TEXT" => htmlspecialcharsEx($_REQUEST['MESSAGE']),
"EMAIL_TO" => "mail@mail.ru"
);
if (CModule::IncludeModule("main")):
if (CEvent::Send("FEEDBACK_FORM", "s1", $arEventFields)):
echo "ok";
endif;
endif;
?> |