PHP Classes

Warning: fsockopen() error...

Recommend this page to a friend!

      SMTP  >  All threads  >  Warning: fsockopen() error...  >  (Un) Subscribe thread alerts  
Subject:Warning: fsockopen() error...
Summary:When I try to send a message this is the error I get...
Messages:3
Author:Robert
Date:2010-03-23 15:27:10
Update:2010-03-23 16:08:50
 

  1. Warning: fsockopen() error...   Reply   Report abuse  
Picture of Robert Robert - 2010-03-23 15:27:10
...Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/path/to/smtp/classes/mail_class.php on line 39


also this:

Warning: fsockopen() [function.fsockopen]: unable to connect to xserve.servername.com:25 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/path/to/smtp/classes/mail_class.php on line 39

AND

Warning: fgets(): supplied argument is not a valid stream resource in /home/path/to/smtp/classes/mail_class.php on line 103


*** The site was working just fine for about a month.
any suggestions?

  2. Re: Warning: fsockopen() error...   Reply   Report abuse  
Picture of Ivan Priorov Ivan Priorov - 2010-03-23 15:41:37 - In reply to message 1 from Robert
A server exists in the network [xserve.servername.com]?
Copy lines 3 and 4 of the file mail_class.php,
values that you entered...

  3. Re: Warning: fsockopen() error...   Reply   Report abuse  
Picture of Robert Robert - 2010-03-23 16:08:50 - In reply to message 2 from Ivan Priorov
Thank you
nameserver was mis-configured.
Used the IP address instead and it worked.