Tengo el siguiente script que configuro para enviar mails desde los sitios web. En el configuro todo las variables que toma del formulario de contacto que se encuentra en la web. El tema es que no llegan a GMAIL pero si a todas las que he probado.
Cual puede ser el error?????
Código PHP:
<?
// ------------- CONFIGURABLE SECTION ------------------------
// $mailto - set to the email address you want the form
// sent to, eg
//$mailto = "[email protected]" ;
$mailto = '[email protected]';
// $subject - set to the Subject line of the email, eg
//$subject = "Feedback Form" ;
$subject = " $motivo desde WEB SITE " ;
// the pages to be displayed, eg
//$formurl = "http://www.example.com/feedback.html" ;
//$errorurl = "http://www.example.com/error.html" ;
//$thankyouurl = "http://www.example.com/thankyou.html" ;
$formurl = "http://www.miweb.com.ar/contacto.htm" ;
$errorurl = "http://www.miweb.com.ar/error.htm" ;
$thankyouurl = "http://www.miweb.com.ar/gracias.htm" ;
// -------------------- END OF CONFIGURABLE SECTION ---------------
$name = $_POST['nombre'] ;
$email = $_POST['email'] ;
$pais = $_POST['pais'];
$provincias = $_POST['provincias'] ;
$ciudad = $_POST['ciudad'];
$motivo = $_POST['motivo'];
$comments = $_POST['comentario'] ;
$http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name) || empty($email) || empty($pais) || empty($provincias) || empty($ciudad) || empty($motivo) || empty($comments)) {
header( "Location: $errorurl" );
exit ;
}
$messageproper .= "Nombre y Apellido: " . $HTTP_POST_VARS["nombre"] . "\n";
$messageproper .= "E-mail: " . $HTTP_POST_VARS["email"] . "\n";
$messageproper .= "Pais: " . $HTTP_POST_VARS["pais"] . "\n";
$messageproper .= "Provincia: " . $HTTP_POST_VARS["provincias"] . "\n";
$messageproper .= "Ciudad: " . $HTTP_POST_VARS["ciudad"] . "\n";
$messageproper .= "Motivo del Contacto: " . $HTTP_POST_VARS["motivo"] . "\n";
$messageproper .= "Comentarios: " . $HTTP_POST_VARS["comentario"] . "\n";
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.01" );
header( "Location: $thankyouurl" );
exit ;
?>