I have been breaking my head over this for a couple of hours now and I am absolutely stuck. I really need help
I have a simple sendMail.php file on my server. Here's the code:
Code: Select all
<?php
$sendTo = "xxx@xxx.com";
$subject = $_POST["referencia"];
$headers = "From: " . $_POST["nombre"] . "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = "Formulario " . $_POST["referencia"] . "\r\n" . "\r\n" .
"Nombre: " . $_POST["nombre"] . "\r\n" .
"eMail: " .$_POST["email"] . "\r\n" .
"Telefono: " . $_POST["telefono"] . "\r\n" .
"Coche: " .$_POST["coche"] . "\r\n" .
"Comentarios: " .$_POST["comentarios"] . "\r\n";
mail($sendTo, $subject, $message, $headers);
?>
I dire need of some assistance...
Wojtek