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…
‘myTransport’=>[
‘host’ => ‘ssl://box.mydomain.com’,
‘port’ => 465,
‘username’ => ‘username@mydomain.com’,
‘password’ => ‘*****’,
‘className’ => ‘Smtp’,
‘timeout’ => 30,
‘client’ => null,
‘context’ => [
‘ssl’ => [
‘verify_peer’ => false,
‘verify_peer_name’ => false,
‘allow_self_signed’ => true
]
],
‘tls’ => false,
‘smtpd_tls_auth_only’ => ‘true’,
‘log’=> true,
‘url’ => env(‘EMAIL_TRANSPORT_DEFAULT_URL’, null),
]
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
Any help will be much appreciated.
Thanks guys ;(