hey,
I want to send mail from different controllers in my application,
and I wondering how to do that without declare the Email component
data ( smtpOptions, from, etc ) in any method I want to send mail
from.
The app_controller is not an option because the Email component is use
only in few controllers.
I thought about using
configuration::write('email',array('from'=>'[email protected]',
'smtpOptions' => array('...')) and store it in core.php, is it the
right solution ? and how I load this data to the Email component
( $this->Email = Configuration::read('email') is fine ? )
tnx,
Gil.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en