[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 = "email@example.com";
$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)
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)