Answer the question
In order to leave comments, you need to log in
Hook why does not work?
There is a form that is in a chunk
[[!AjaxForm?
&snippet=`FormIt`
&form=`callbackTpl`
&hooks=`email,FormItSaveForm,spam`
&emailTpl=`emailTpl`
&emailTo=[[++adminMail]]
&validate=`phone:required,name:required,email:blank`
&validationErrorMessage=`В форме содержатся ошибки!`
&successMessage=`Ваша заявка в работе`
&emailSubject=`Обратный звонок`
&emailFrom=`[email protected]`
]]
<?php
$to = "[email protected]";
$subject = "Robot - Робот";
$message = "Message, сообщение!";
mail ($to, $subject, $message);
[[!AjaxForm?
&snippet=`FormIt`
&form=`callbackTpl`
&hooks=`email,FormItSaveForm,spam,customhook`
&emailTpl=`emailTpl`
&emailTo=[[++adminMail]]
&validate=`phone:required,name:required,email:blank`
&validationErrorMessage=`В форме содержатся ошибки!`
&successMessage=`Ваша заявка в работе`
&emailSubject=`Обратный звонок`
&emailFrom=`[email protected]`
]]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question