phpmailer error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
bluesman333
Forum Commoner
Posts: 52
Joined: Wed Dec 31, 2003 9:47 am

phpmailer error

Post by bluesman333 »

using phpmailer class and am getting the following error:

Mailer Error: Language string failed to load: recipients_failed...

I have site domain.com. When i send to anyuser@domain.com, I don't get the error. But, if i send anywhere else, I get the error.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

why not just use the mail() function?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

shiznatix wrote:why not just use the mail() function?
Phpmailer offers more than a few improvements over raw mail().. smtp auth, multiple smtp servers, queued sending, servers that dont support mail, raw smtp send..

It's a long list, check out the project sometime.. I use it in many of my projects.

As to the original question, the error indicates that you dont have the language files for phpmailer to translate the error message for you.

The error message is that the recipients failed. You'll need to use the smtp error methods in phpmailer to look at the full failure message to see why.
User avatar
bluesman333
Forum Commoner
Posts: 52
Joined: Wed Dec 31, 2003 9:47 am

but...

Post by bluesman333 »

does that explain why it will work for local emails?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: but...

Post by Roja »

bluesman333 wrote:does that explain why it will work for local emails?
Most likely, you are getting an smtp failure for some reason: Possibly because sendmail isnt configured to send to remote sites.

You need the full error message (using the error message method) to figure it out further.
Post Reply