Language string failed to load: from_failed[from_email_address]

后端 未结 4 922
挽巷
挽巷 2021-01-13 11:52

I got this error when trying to send an email using smtp:

Language string failed to load: from_failed**myemail@gmail.com**

Here\'s my code:

4条回答
  •  执笔经年
    2021-01-13 12:44

    This usually means your phpMailer class cannot find the language file when it is trying to spit out a message.

    Easiest way to fix this is to set the language manually including the path to the language folder:

    $mail = new PHPMailer();
    $mail->SetLanguage("en", 'includes/phpMailer/language/');
    

    It's in your language folder. Or you can simply point your SetLanguage method to this source:

      1  
    

提交回复
热议问题