Código PHP:
<?php
require('phpmailer/class.phpmailer.php');
$mail=new PHPMailer();
$mail->IsSMTP();
$mail->Host = "smtp.gmail.com";
$mail->SMTPAuth = true;
$mail->Username = "[email protected]";
$mail->Password = "c";
$mail->From = "[email protected]";
$mail->FromName = "";
$mail->AddReplyTo("[email protected]");
$mail->AddAddress("[email protected]");
$mail->IsHTML(true);
$mail->Subject = "Test message sent using the PHPMailer component";
$mail->Body = "This is a test message.";
$mail->Send();
$mail->IsMail();
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
?>
Message was not sent
Mailer Error: Language string failed to load: instantiate
Alguien sabe a que se puede deber esto?? Gracias y saludos!