Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/04/2016, 04:17
karrax
 
Fecha de Ingreso: diciembre-2015
Mensajes: 15
Antigüedad: 8 años, 5 meses
Puntos: 0
Pregunta [PHPMailer] Error en la conexion

Hola:

Tengo la siguiente configuracion:

Código:
require("class.phpmailer.php");
$mail= new PHPMailer(); // defaults to using php "mail()"
$mail->CharSet = 'UTF-8';
$body= $mail_contendio_html;
$mail->SMTPAuth = true;
$mail->SMTPSecure = '';
$mail->Host = "********";
//$mail->Port = 25;
$mail->Username = "*********";
$mail->Password = "*********";
$mail->IsSMTP(); // telling the protocol to use SMTP
$mail->From = "*********";
$mail->FromName = "*********";
$mail->IsHTML(false);
$mail->Subject = "[*********] Asteko notifikazioa (" + date(Y-m-d) + ")";
$mail->MsgHTML($body);
$destinatarios=explode(",", "**********");
Los datos que aparecen con "*******" son datos que no quiero que se hagan publicos pero estan bien insertados.

Con esta configuración, aprece el siguiente error:

Código:
SMTP Error: Could not connect to SMTP host.
Que puedo hacer?

Gracias