You are here: Re: phpMailer error « PHP Programming Language « IT news, forums, messages
Re: phpMailer error

Posted by Juliette on 07/26/06 21:09

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация