Hello I am using Cakephp 3.7.3.
The problem is that in localhost I can send emails without any problem but when I try in my VPS (with hostinger) it is imposible to send an email. I always get the error:
" Connection timed out Cake\Network\Exception\SocketException"
My server has ubuntu 18.04.1 with php 7.3.2.
I have already allow the email port with ufw
I have seen the topic “Can send an email on Cakephp3” and anything works for me. The code that I have in my app.php is
'gmail'=> [ 'host' => 'smtp.gmail.com', 'port' => 587, 'username' => 'email@example.com', 'password' => 'mypass', 'className' => 'Smtp', 'log' => true, 'tls'=>true ],
I tried with other configurations but I get always the same problem. I also tried with an account that is not GSuite (a normal gmail.com)
I hope anyone can help me.
Thanks in advance