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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...