My php mailer script works, the e-mail arrives to my inbox but the form page (and the whole website) disappears when I click on the Send button. Here is my code. Could you help what is wrong? (Sorry, but I’m an absolute beginner and from Hungary, that’s why you can see those characters.)
[php]<?php
$emailSubject = ‘Ajánlatkérés érkezett!’;
$mailto = ‘****@hotmail.com’;
$nameField = $_POST[‘name’];
$phoneField = $_POST[‘phone’];
$emailField = $_POST[‘email’];
$descriptionField = $_POST[‘description’];
$body = <<<EOD
Név: $nameField
Telefon: $phoneField
E-mail: $emailField
Leírás: $descriptionField
EOD;
$headers = “Feladó: $email\r\n”;
$headers .= “Content-type: text/html\r\n”;
$success = mail($mailto, $emailSubject, $body, $headers);
?>[/php]