Rusnoff Posted December 4, 2007 Share Posted December 4, 2007 I try to send e-mails with fsockopen, but, the host has blocked fsockopen. I can send the e-mails from another server, but, the stuff is in a database. Is there any alternative to fsockopen? Link to comment https://forums.phpfreaks.com/topic/80159-alternative-to-fsockopen/ Share on other sites More sharing options...
pocobueno1388 Posted December 4, 2007 Share Posted December 4, 2007 You can try pfsockopen() http://us3.php.net/manual/en/function.pfsockopen.php Link to comment https://forums.phpfreaks.com/topic/80159-alternative-to-fsockopen/#findComment-406261 Share on other sites More sharing options...
Rusnoff Posted December 4, 2007 Author Share Posted December 4, 2007 Doesn't work either. Error: Warning: pfsockopen() [function.pfsockopen]: unable to connect to customer-smtp.one.com:25 (Connection timed out) in /customers/geldklikker.eu/geldklikker.eu/httpd.www/mail/class.smtp.php on line 105 Line 100-105: <?php #connect to the smtp server $this->smtp_conn = pfsockopen($host, # the host of the server $port, # the port to use $errno, # error number if any $errstr, # error message if any $tval); # give up after ? secs ?> $host=correct host (works in mailing program). $port = 25 Link to comment https://forums.phpfreaks.com/topic/80159-alternative-to-fsockopen/#findComment-406265 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.