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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.