venu
venu

Reputation: 121

Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP

I'm using wamp to run, but i got this warning at run time:

Warning: fsockopen() [function.fsockopen]: unable to connect to tls://smtp.gmail.com:465 (Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?) in C:\wamp\www\mail\testemail.php on line 24 Unable to find the socket transport "tls" - did you forget to enable it when you configured PHP?

Upvotes: 12

Views: 17792

Answers (3)

TheSatinKnight
TheSatinKnight

Reputation: 744

In OpenSuSE Linux 11.3

Required tls (Tcl Binding for the OpenSSL Library) and php5-openssl packages. Easily added with the yast software manager after a repository refresh.

Upvotes: 0

Scott Scanlon
Scott Scanlon

Reputation: 11

If you're using WAMP on Windows you can left click on the green W in the notifications pane.

Then goto: PHP -> PHP Extensions -> php_openssl

Once you do that WAMP should auto restart and everything should work.

Upvotes: 1

Louisvdw
Louisvdw

Reputation: 172

You need to enable SSL/TLS for your Apache/PHP installation. Make sure you have libeay32.dll and ssleay32.dll in your /apache/bin folder. Edit your php.ini file and add

extension=php_openssl.dll

Then restart Apache and your SSL should be loaded.

Upvotes: 15

Related Questions