The function works, but no data is received by the mail. I would like your view on this code.
Low bow!
<?php if (isset($_POST['submit'])) { $to = 'me@example.com'; $subject = 'Обратная связь'; $message = ' <html> <head> <title>'.$subject.'</title> </head> <body> <p>Имя: '.htmlspecialchars($_POST['fname']).'</p> <p>E-mail: '.htmlspecialchars($_POST['femail']).'</p> <p>Сообщение: '.htmlspecialchars($_POST['fcomment']).'</p> </body> </html>'; $headers = "Content-type: text/html; charset=utf-8\r\n"; mail($to, $subject, $message, $headers); header("Location: http://www.example.com/thankyou.html"); }