Solved

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home1/bwmhelpd/public_html/helpdeskpilot/includes/class.smtp.php on line 105

Posted on 2008-06-09
5
5,867 Views
Last Modified: 2013-12-13
Can some one explaiin what the error is telling me I'm new to php so please give as much detail as poss.
Thanks
0
Comment
Question by:cdb424ttm
  • 2
  • 2
5 Comments
 
LVL 24

Expert Comment

by:glcummins
ID: 21745210
You are using a name instead of an IP address in your fsockopen() call, and your server cannot resolve that name into an IP address. If possible, find out the IP of the server you are trying to connect to, and use that instead.
0
 
LVL 48

Expert Comment

by:hernst42
ID: 21745356
You somehow misspelled the name of the mailserver, check that there are no spaces in the name.
0
 

Author Comment

by:cdb424ttm
ID: 21745680
Now I get this errorWarning: fsockopen() [function.fsockopen]: unable to connect to 138.3.0.200:33(Connection refused) in /home1/bwmhelpd/public_html/helpdeskpilot/includes/class.smtp.php on line 105
0
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 21745710
So that host does not accept mails from the IP you try to access or that host does not provide an Mail-Server
0
 
LVL 24

Expert Comment

by:glcummins
ID: 21745711
Check the firewall that is protecting 138.3.0.200 to ensure that a connection is allowed. Also check that 33 is the right port; that is not a standard SMTP port (25 is).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now