• Skip to main content
  • Skip to footer

EqualServing

WooCommerce, ActiveCampaign, 1ShoppingCart, Infusionsoft Expertise.

  • Services
    • Build Websites
    • Task Automation
      • ActiveCampaign Marketing Automation
      • Process Automation with Infusionsoft
    • Website Content Migration
    • Service Bundles
    • Third Party Software Integration
    • WordPress Plugin Development
  • About Us
  • Contact
  • Blog
  • Shop
    • Service Bundles
    • WordPress Plugin For 1ShoppingCart.com V2.0
    • WordPress Themes
    • All Our WordPress Plugins
  • Support
    • FAQ – 1ShoppingCart Plugin For WordPress – GENERAL
    • FAQ – 1ShoppingCart Plugin For WordPress – FREE
    • FAQ – 1ShoppingCart Plugin For WordPress – PREMIUM
    • Contact Support
You are here: Home / PHP Scripting / Phpmailer Language string failed to load

Phpmailer Language string failed to load

April 23, 2008 by Michele Leave a Comment

I have seen many posts from people who have installed phpmailer in the hopes of improving their mail capabilities on their site only to be confounded by the language string error –

Phpmailer Language string failed to load

Having just resolved the problem myself, I thought I would just document my remedy in the hopes that it will save someone else some time.

One solution I found in my search was altering the include path using a statement like –

set_include_path(get_include_path() . PATH_SEPARATOR . "/path_to_class/class/phpmailer");

But this change did not correct the problem for me. I looked further into the phpmailer documentation and found the SetLanguage method. I added the following lines to my code and the problem was resolved.

$lang_path = "/path_to_class_directory/class/phpmailer/language/"; 
$lang_type = "en"; 
$mail->SetLanguage($lang_type, $lang_path);

Filed Under: PHP Scripting

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

Stay Connected

Stay up to date with the latest news, product announcements, and more by signing up for our email newsletter. Don't forget to follow us on your favorite social sites as well.
  • Email
  • Google+
  • LinkedIn
  • RSS
  • Twitter
  • YouTube

Contact Us

EqualServing

46 Amethyst Rd
Palmyra, VA 22963

727-490-7443 https://www.equalserving.com/wp-content/uploads/2013/11/eslogo_300x60.png $$
Email :: Plugin Support
  • ActiveCampaign
  • How To
  • WooCommerce
  • WordPress Explained
  • Resources and Recommendations

Copyright © 2021 · Web Development :: EqualServing.com on Genesis Theme Framework
» You will find affiliate links on this site. When we find a company or individual that consistently delivers a high quality product or service, we will become an affiliate. «