Could not find ssl socket migration, CakePHP sends email from shell

I'm trying to send an email from cron using the CakePHP shell, but I get the following error: "Could not find ssl socket transfer" - did you forget to enable it when setting up PHP ?: 0 ",

The problem is only on the local server, I am using the WAMP server, and the php_openssl extension is correctly enabled. When I checked if the extension was loading from the controller, everything seemed fine, but when I debug the shell action, the extension didn't seem to load. In addition, when I try to send an email from the controller, the email is sent successfully. I use gmail credentials, so ssl requirement.

thank

+5
source share
2 answers

The solution is found, it seems that you need to uncomment the line in which the openssl extension can be found in (path to wamp) \ bin \ php (your version of php) \ php.ini, since there are 2 php.ini files, inclusion of it only in ( path to wamp) \ bin \ apache (Apache version) \ bin \ php.ini is not enough

+19
source

You need to install for php and apache

Check ssl_module in the Apache modules.
Check php_openssl in the PHP extensions.
+1
source

All Articles