Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...