Following is in English, pero soy hispanohablante, así que cualquier duda, puede ir en cualquiera de los dos idiomas. Respondo en inglés, para que más usuarios puedan enterarse.
I had a problem trying to making changes in pilots' profiles. As far as emails were not being sent, it never saved changes.
Yes, the problem is in the email config file (the one cited in installation instructions). You MUST not only introduce the admin email in line 42, but also configuring the parameters of smpt. The problem is that if your hosting mail is secured (ssl, for example) it will not work.
The solution: either use a port number which is not ssl encrypted (your hosting provider can tell you, for me was port 27) OR use "ssl://" before your mail url. I give here an example of the full email.php in config:
(from line 38):
class EmailConfig {
public $default = array(
'transport' => 'Mail',
In the following line substitute info@yourdomain.com with a valid email registered in your hosting:
'from' => 'info@yourdomain.com',
'charset' => 'utf-8',
'headerCharset' => 'utf-8',
);
Now, the tricky part, configuring your smtp service. Please refer to your hosting info about mail server url and ports:
public $smtp = array(
'transport' => 'Smtp',
You can leave the next line as is (not sure if you should change it by your own parameters)
'from' => array('site@localhost' => 'My Site'),
Here you put your hosting parameters. Change mail.yourdomain.com by your domain. Do not forget to use ssl:// before the mail server url
'host' => 'ssl://mail.yourdomain.com',
Here put the port number your hosting provider tells you to use for the smtp server:
'port' => 467,
Leave the next one as is
'timeout' => 30,
Here, use the same email address you used in line 42:
'username' => 'info@yourdomain.com',
Here, put the password you you use for login to your email:
'password' => 'changethiswithyourpassword',
'client' => null,
'log' => false,
//'charset' => 'utf-8',
//'headerCharset' => 'utf-8',
);
Next section of email.php has to be edited too:
public $fast = array(
Here put the admin address:
'from' => 'info@yourdomain.com',
Rest is ok. Leave it as is.
'sender' => null,
'to' => null,
'cc' => null,
'bcc' => null,
'replyTo' => null,
'readReceipt' => null,
'returnPath' => null,
'messageId' => true,
'subject' => null,
'message' => null,
'headers' => null,
'viewRender' => null,
'template' => false,
'layout' => false,
'viewVars' => null,
'attachments' => null,
'emailFormat' => null,
'transport' => 'Smtp',
Here, just use the info you used above:
'host' => 'ssl://mail.yourdomain.com',
'port' => 467,
'timeout' => 30,
'username' => 'info@yourdomain.com',
'password' => 'changethiswithyourpassword',
'client' => null,
'log' => true,
//'charset' => 'utf-8',
//'headerCharset' => 'utf-8',
);
And that is. Now CakeMail can use your smtp server to send emails.
Hope I could help a bit.
Cheers and happy airline management!