I am having this Error in PHP:
Language string failed to load: recipients_failed
My Code is:
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.escentrics.com"; // SMTP server
$mail->From = "example@escentrics.com";
$mail->AddAddress($Email);
$mail->Subject = "Tradeworx Account Confirmation";
$mail->Body = "Hello $fname,
Account Information:
Username/Email: $email
Password: $password
To activate you account just go to this link: http://192.168.1.101/tradeworx/TWWebsite/index.php?page=Confirmation&id=$userid&confirmationcode=$confirmcode";
$mail->WordWrap = 100;
if(!$mail->Send())
{
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
echo 'Message has been sent.';
The error message means that PHPMailer can’t find its language translation files for the real error messages. What triggered this is most likely a bad ‘To’ address, which means that most likely
$Emailis incorrect: blank, mal-formed, etc… Remember that PHP variables are case sensitive, so make sure it’s actually$Emailwith a capital E (and contains a valid email address) and not$emailor similar.