I can’t get cakephp3 to send emails. In cakephp2 I could do this no problem. I am using the latest WAMP, and cakephp3.3 on Windows 7. I tried to follow the directions but it looks like I am getting something basic wrong. Do I also need to configure Wamp as I checked the php.ini-development file but there is no smtp entry to change
error- stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error)
I also set up wamp for email and I still get the same error.
On my developement-machine (vagrant with ubuntu/trusty32, nginx, php7, CakePHP 3.3.0) I am having no problems to connect the smtp-server an send mails.
On the production-server (a cloud-based service, php7) I get the described error.
I found this post describing a similar behaviour. But my SSL-skills are not very good. Maybe this helps to investigate the cause of the error.
OpenSSL should be configured on your production server
If you want to use Gmail as email relay, you will need to have access for less secure apps enabled in your Google account for this to work: support article.
My firewall is disabled and this link is not usefull. I need send email with gmal smtp.
I have another droplet with same code and it runs, however this don’t.
Ok, that might depend on payment plan?. I got a droplet recently. I assumed outgoing mail would be blocked, but after setup, I got Postfix (sendmail alternative) is working.
This did not work for me and I am having this issue and I don’t knwo how to fix it… I am not running a gmail transport I want this to use a hosted SMTP account and it works fine in Local, but once up in the server the transport fails to connect to the email account… Here is my transport…
I’ve tried the ‘tls’ as true and it does not work, I’ve tried creating another account and nothing. Please some help here, I am very desperate at this point. I am running CakePhP 3.4 in a php 5.6