At your site you need to make a submission from the form. Long tormented with PHP and Ajax, but could not figure it out.
I tried this code, but when I click on the "Send" button, nothing comes to the mail.
<? if((isset($_POST['name'])&&$_POST['name']!="")&&(isset($_POST['phone'])&&$_POST['phone']!="")){ $to = 'mail@yandex.ru'; $subject = 'Обратный звонок'; $message = ' <html> <head> <title>'.$subject.'</title> </head> <body> <p>Имя: '.$_POST['name'].'</p> <p>Телефон: '.$_POST['phone'].'</p> </body> </html>'; //Текст нащего сообщения можно использовать HTML теги $headers = "Content-type: text/html; charset=utf-8 \r\n"; $headers .= "From: Отправитель <from@example.com>\r\n"; mail($to, $subject, $message, $headers); } ?>