Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/01/2008, 16:24
lvinuezav
 
Fecha de Ingreso: diciembre-2007
Mensajes: 218
Antigüedad: 16 años, 4 meses
Puntos: 1
Problemas con phpmailer

Saludos,
Estoy utilizando la libreria phpmailer con un host gratuito de freetzi, me funciono bien por una hora, pero ahora me sale "language string failed to load:connect_host" la configuracion de mi class.smtp.php es:

#connect to the smtp server
$host = "ssl://smtp.gmail.com";
$port = 465;

y mi pagina que envia los mails es:

$mail=new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "[email protected]"; // SMTP username
$mail->Password = "********"; // SMTP password
$webmaster_email = "[email protected]"; //Reply to this email ID
$email="".$telefono.$to;
//"[email protected]"; // Recipients email ID
//$name=$nombre; // Recipient's name
$mail->From = $nombre;//$webmaster_email;
$mail->FromName = $nombre;//"Webmaster";
$mail->AddAddress($email,$nombre);
//$mail->AddAddress($email,$name);
//$mail->AddReplyTo($webmaster_email,"Webmaster");
$mail->WordWrap = 50; // set word wrap
//$mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // attachment
$mail->IsHTML(true); // send as HTML
$mail->Subject = $nombre." Dice";
$mail->Body = $mensa;//"Hi,This is the HTML BODY "; //HTML Body
//$mail->AltBody = $mensa;//"This is the body when user views in plain text format"; //Text Body
if(!$mail->Send())
{
echo "<script> alert(\"Error grave, No se pudo enviar mail ".$mail->ErrorInfo."\");</script>";
echo '<meta http-equiv="refresh" content="0;URL=sms.html" target="_self">';
//echo "Error al enviar Mail: " . $mail->ErrorInfo;
}
else
{
echo "<script> alert(\"Su mensaje a sido enviado OK al Numero ".$telefono."\");</script>";
echo '<meta http-equiv="refresh" content="0;URL=sms.html" target="_self">';
//echo "Mensaje a sido enviado";
}

Última edición por lvinuezav; 14/01/2008 a las 16:29