Tengo la siguiente configuracion:
Código:
Los datos que aparecen con "*******" son datos que no quiero que se hagan publicos pero estan bien insertados.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(",", "**********");
Con esta configuración, aprece el siguiente error:
Código:
Que puedo hacer?SMTP Error: Could not connect to SMTP host.
Gracias