4
In your file app/Config/email.php
you will need to create the class EmailConfig
.
The archive app/Config/email.php.default
is an example of how it should look.
You must create a new configuration called gmail with the following code
public $gmail = array(
'host' => 'ssl://smtp.gmail.com',
'port' => 465,
'username' => '[email protected]', // seu email no gmail
'password' => 'senha', // sua senha no gmail
'transport' => 'Smtp'
);
For connections tls you will need to include 'tls' => true
in its configuration;
I’ll try it, thanks.
– Ricardo Costa
Don’t forget to put the config in the class when calling $Email = new Cakeemail(); $Email->config('gmail');
– Francis Rebouças