[RESOLVED] Language string failed to load: connect_host
please, some body help me, its too strange that im trying 3 days to send an email but i cant. I use phpmailer and recieve this Mailer Error: Language string failed to load: connect_host
this is my code, whats wrong?
$mail = new PHPMailer();
$mail->Host = "something";
$mail->SMTPAuth = true;
$mail->Username = "myusername";
$mail->Password = "mypassword";
$mail->From = "firstname.lastname@example.org";
$mail->FromName = "name1";
$mail->WordWrap = 50;
$mail->Subject = "Here is the subject";
$mail->Body = "this is testttttttt";
$mail->AltBody = "This is the text-only body";
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
High Energy Magic Dept.
If your include_path setting is not set up to point to the PHPMailer directory, then you will have to explicitly include the language file into your script. It will be something like:
<path to PHPMailer directory>/language/phpmailer.lang-en.php (or whichever other language file you want to use)
Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be." ~ from Nation, by Terry Pratchett
"But the main reason that any programmer learning any new language thinks the new language is SO much better than the old one is because he’s a better programmer now!" ~ http://www.oreillynet.com/ruby/blog/...ck_to_p_1.html
Language string failed to load: connect_host
Originally Posted by NogDog
Thank you so much. i did it
I'm having the same problem, but I don't understand, where do I place the directory to the language file. Do I have to if the PHP file is in the same folder as the language file?
I am using PHP Mailer to send mail via Gmail.
Sometimes I see "Language string failed to load: connect_host" error. This error is caused by Gmail and it's not a PHP Mailer problem.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)