tpog Posted October 27, 2008 Posted October 27, 2008 Hi, I've just signed up to the service and uploaded some code. Using fsockopen I'm getting the error: Warning: fsockopen() [function.fsockopen]: unable to connect to tls://smtp.gmail.com:465 (Connection timed out) in /home/tpog/public_html/functions/functions.php on line 81 no connection Is fsockopen() supported? Do I need to set-up or activate anything? I've done a forum search and can't see anything about this. Any help appreciated. Quote
Ashoat Posted October 27, 2008 Posted October 27, 2008 fsockopen() is indeed supported, and you don't need to do anything to activate it. Your error message indicates that fsockopen is working fine - the issue is that it cannot open a connection with the specified address because it encounters a timeout when it attempts. Quote
tpog Posted October 27, 2008 Author Posted October 27, 2008 Thanks for the update - I'll persevere with it then, thanks. Update: fsockopen didn't like connecting to "tls://smtp.gmail.com" or "ssl://smtp.gmail.com". Have amended to connect to "smtp.gmail.com" and included a STARTTLS step in the handshake. Quote
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.