Re: phpMailer error



Leszek wrote:
Hi.
I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this error when I'm trying to use phpMailer:

Mailer Error: Language string failed to load: recipients_failed


Does anyone konw the reason for this error?
Could you give a solution?

Thanks
Leszek



Leszek,

First problem is that the error message is not loading:

Make sure you have the language file in an underlying directory called 'language'.

Second: to use the lang-pl file, you need to change the language setting of phpmailer

$mail = new PHPMailer();
$mail->SetLanguage( 'pl', 'pathtophpmailer/phpmailer/language/' );

As a side-note, it is always a good idea to also upload the lang-en file so that the application has access to the default language variables.


Once you've set the language up, then you will see the proper error message for debugging.
That will be your next problem to work on.

Good luck,
Jrf
.



Relevant Pages

  • Re: Dynamic drop down list problem
    ... dimension for the language and the other for the string id. ... >>> I have an asp application which I made "Multilanguage". ... >>> In the beginning of an asp file I determine which language file to ... I can now display the right ...
    (microsoft.public.inetserver.asp.general)
  • Re: Multi-language GUI with Perl/Tk?
    ... I would like to provide several languages (e.g. english, german, ... Base of both solutions is single language file for all used languages. ... For fwe string I use array of strings. ...
    (comp.lang.perl.tk)
  • Re: Language Selcection Philosophy
    ... message number 1 is the same what ever the language. ... You set a variable to say use language file 1, ... Thus on power up you read message 0 from ... Foreigner has rather unfairly stopped using spears and now uses the ...
    (comp.arch.embedded)
  • Re: Language Selcection Philosophy
    ... message number 1 is the same what ever the language. ... You set a variable to say use language file 1, ... Thus on power up you read message 0 from ... Foreigner has rather unfairly stopped using spears and now uses the ...
    (comp.arch.embedded)
  • Re: System error messages in other languages
    ... function to return a system message in the language of my choice. ... The error message is misleading since it implies that there is ... So if your OS is in German and the client ... also reads German, then I think you'd be OK. ...
    (borland.public.delphi.nativeapi)