Process CakeEmail error log on Cakephp 2.2.3
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('mail@myhost.com')->to('to@myhost.com')->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 cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home