Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/04/2014, 08:40
romanpg
 
Fecha de Ingreso: marzo-2014
Mensajes: 2
Antigüedad: 10 años, 1 mes
Puntos: 0
Respuesta: Error de Php mailer con Gmail

Yo tengo esto escrito, eso que pones ni siquiera me deja escribirlo donde yo tengo eso sin darme errores de sintaxis, gracias y saludos.

$mail->IsSMTP(); //Important b'coz by this stmt we sent mail using smtp

$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = 'smtp.gmail.com'; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->SMTPAuth = true;
$mail->Username = "[email protected]"; // GMAIL username
$mail->Password = "xxxxxxx"; // GMAIL password