phpmailer error


m getting the following error when trying to send an email with phpmailer

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/aigf002/libs/class.smtp.php on line 105

Warning: fsockopen(): unable to connect to in /home/aigf002/libs/class.smtp.php on line 105
Message was not sent

I can tell you that it was working when I had the smtp turned off, The smtp class is in the include directory, but im not sure if they smtp information is correct. (eg username/password/server) could this error be produced because i have the config info wrong... or is it something else?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This can be. Check username/password/server.
And please, show me line 105 from your /home/aigf002/libs/class.smtp.php
you can have the servername as localhost if you donot know the smtp server name...

for the username and password use the one provided for authentication. or you can use the POP email account and password i think....
antumAuthor Commented:

Set the server to localhost and tried the main login and password for the account but now I get this error message

Message was not sent

Mailer Error: Language string failed to load:

The same bug was discussed on SourceForge's phpmailer project page ( ). There you'll find the solution (hope it help you):
$mail->Host     = "";
$mail->Mailer   = "smtp";

Also there is a discussion on similar phpmailer error here ( ) But the problem in that post was in configuration under Win32. But there was a lot of versions of how to fix problem, maybe something from that discussion will help you.

And there are described another similar problem on SitePoint ( ). Maybe this can help too.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.