![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/03/2014, 15:21
|
![Avatar de camarvi24](http://static.forosdelweb.com/customavatars/avatar446526_1.gif) | | | 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; |