While using PHP MAILER, I get this error…
(note that jpdorto@hotmail.com is my email address)
Mailer Error: Language string failed to load:
require("phpmailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "pepe1"; // SMTP username
$mail->Password = "pepe"; // SMTP password
$mail->FromName = "Mailer";
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the <b>HTML body</b>";
$mail->AltBody = "This is the text-only body";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";