How to process CakeEmail error on send email? I want to save error log to
database.
Error log always comes up so I can not proceed
App::uses('CakeEmail', 'Network/Email');
$email = new CakeEmail('myConfig');
$email->emailFormat('html')
->from('[email protected]')
->to('[email protected]')
->template('myTemplate')
->subject('Subject');
if(!$email->send('Message')){
/* Save error log to database */
}
* Sorry for my English
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.