Bueno, el problema es que tengo que enviar mails desde mi localhost y para poder hacer, estoy usando el smtp de gmail, tengo este código
Código:
Pero me indica este errr:<?php include("class.phpmailer.php"); include("class.smtp.php"); $mail = new phpmailer(); //$mail->PluginDir = ""; $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = "tsl"; $mail->Host = "smtp.gmail.com"; $mail->Port = 587; $mail->Username = "xxxx@xxxx.com"; $mail->Password = "xxxxxx"; $mail->From = "xxxx@xxxxx.com"; $mail->FromName = "Liss"; $mail->Subject = "Prueba"; $mail->AltBody = "Si llega "; //$mail->MsgHTML("I´m so happy<br><b>xxxx</b>."); $mail->AddAttachment("lay_outs/telEr.txt"); $mail->AddAddress("lissette@operacionesdelnorte.com", "Destinatario"); $mail->IsHTML(true); if(!$mail->Send()) { echo "Error: " . $mail->ErrorInfo; } else { echo "Mensaje enviado correctamente"; } ?>
Cita:
Error: Language string failed to load: from_failedxxxx@xxxxx.com
En que estoy mal??? ALguien podria ayudarme?? Por favor!!! es urgenteeee!!!Error: Language string failed to load: from_failedxxxx@xxxxx.com
Mi php.ini está configurado dela siguiente forma
Código:
Por favooooooooor!!!!! ; For Win32 only. SMTP = smtp.gmail.com smtp_port =587 ; For Win32 only. sendmail_from =smtp.gmail.com