• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6013
  • Last Modified:

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

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
cdb424ttm
Asked:
cdb424ttm
  • 2
  • 2
1 Solution
 
glcumminsCommented:
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
 
hernst42Commented:
You somehow misspelled the name of the mailserver, check that there are no spaces in the name.
0
 
cdb424ttmAuthor Commented:
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
 
hernst42Commented:
So that host does not accept mails from the IP you try to access or that host does not provide an Mail-Server
0
 
glcumminsCommented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now