Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/03/2014, 15:21
Avatar de camarvi24
camarvi24
 
Fecha de Ingreso: diciembre-2011
Ubicación: España
Mensajes: 74
Antigüedad: 13 años, 2 meses
Puntos: 1
Respuesta: Mandar Correo con PHP

Hola ya he conseguido mandar correo, el problema no estaba en el puerto sino en el nombre del host.
Pongo la configuracion que he utilizado y me ha funcionado


$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.googlemail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465;