![]() |
|||
A Service of Tigertek |
|||
|
PHPMailer error - Language string failed to loadA Site for Techies by TechiesA Simple PHPMailer fixIf the PHPMailer "$mail->ErrorInfo" string contains "Language string failed to load" and you search for help on the web you will find a variety of misleading solutions that have to do with avoiding error messages rather than correcting the error-message language string problem. There doesn't seem to be any mention of the requirement in PHPMailer documentation, but PHPMailer expects the appropriate language file for your website language (for example "phpmailer.lang-en.php" if your web page language is English) to be in a folder named language located under the website folder containing the PHP script that is using the class.phpmailer.php file. For example, if your website has a Contact Us form located in a website folder named /contact, create a folder named /language under it, like this /contact/language, copy phpmailer.lang-en.php (or similar file for your website language) to the language sub-folder and PHPMailer error messages will display as intended.
|
||
©2008 Tigertek Inc. |
|||