Problem to send email to gmail

fusio

New Member
Messages
19
Reaction score
0
Points
1
Hello.
I have this code:
$user = $_POST['usuario'];
$nombre = $_POST['nombre'];
$email = $_POST['email'];
$tel = $_POST['tel'];
$mensaje_form = $_POST['mensaje'];
$para = 'selfiuzf@damanyer.x10.mx' . ", "; // atención a la coma
$para .= 'damanyerweb@gmail.com';
$titulo = 'Correo de usuario';
// mensaje
$mensaje = '
<html>
<head>
<title>Correo de '. $user .'</title>
</head>
<body>
<div style="text-align:center">
<h1>Correo de DemanyerWeb - Blog</h1>
<img src="http://nube.x10.mx/assest/img/logo.png" width=150>
<h3>Usuario: '. $user .'</h3>
<h3>Nombre: '. $nombre .'</h3>
<h3>Email: '. $email .'</h3>
<h3>Telefono: '. $tel .'</h3>
<h3>Mensaje: '. $mensaje_form .'</h3>
<p>Este es un correo que un usuario envio desde tu DamanyerWeb</p>
</div>
</body>
</html>
';
// Para enviar un correo HTML, debe establecerse la cabecera Content-type
$cabeceras = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$cabeceras .= 'From: De:' . $email . "\r\n";
mail($para, $titulo, $mensaje, $cabeceras);

NOTE:
this script send to my hosting free account email x10hosting.com, but don't send to my account gmail. even not appear in the folder spam and I have enable DKIM in my Cpanel
 

fusio

New Member
Messages
19
Reaction score
0
Points
1
Sorry, I figure out the problem. Was an error of my
 
Last edited:

fusio

New Member
Messages
19
Reaction score
0
Points
1
thanks for response, I fixed the problem, It was a mistake that I caused myself.
 
Top