Soket transport "TLS" bulmak için açılamıyor

2 Cevap php

Ben çalıştırmak için wamp kullanıyorum, ama ben zamanında bu uyarı var:

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?

2 Cevap

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

Sonra Apache yeniden başlatın ve SSL yüklü olmalıdır.

Windows üzerinde WAMP kullanıyorsanız eğer bildirimleri bölmesinde yeşil W tıklayın bıraktı edebilirsiniz.

Then goto: PHP -> PHP Extensions -> php_openssl

Eğer WAMP gerekir otomatik yeniden başlatma ve her şeyin çalışması gerektiğini yaptığınızda.