Erro em formulário
Olá, criei um formulário com o seguinte código:
<?
$your_email = "omegasofts@ig.com.br";
$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'], "
<html>
<head>
<title>Formulário de Contato</title>
</head>
<body>
Contact Message<br><br>
Name : ".$_POST['name']."<br>
Email : ".$_POST['email']."<br>
Telephone : ".$_POST['telephone']."<br><br>
Subject : ".$_POST['subject']."<br>
Message : <br>".$_POST['message']."<br>
</body>
</html>" , $headers);
header("Location: ./index.htm?page=_contact_message.htm");
?>
Porém, quando testo no servidor Xampp ele reporta o seguinte erro.
\r\n"; $headers.='Content-type: text/html; charset=utf-8'; mail($your_email, $_POST['subject'], " Contact Message
Name : ".$_POST['name']."
Email : ".$_POST['email']."
Telephone : ".$_POST['telephone']."
Subject : ".$_POST['subject']."
Message :
".$_POST['message']."
" , $headers); header("Location: ./index.htm?page=_contact_message.htm"); ?>
O que fazer para fazê-lo funcionar?
Desde já agradeço,
Leo.
Discussão (1)
Carregando comentários...