Hello
My little app is sending duplicates of its emails.
Here is an example function:
[code]
$this->log($media);
App::uses('CakeEmail', 'Network/Email');
$CakeEmail = new CakeEmail();
$CakeEmail->viewVars(array('media'=>$media, 'person'=>$person));
$CakeEmail->from(Configure::read('app.email'));
$CakeEmail->to ( $person['email'] );
$CakeEmail->subject('New File Notification from ' .
Configure::read('app.name'));
$CakeEmail->template('media_add', 'default');
$CakeEmail->emailFormat('text');
$CakeEmail->send();
[/code]
The code only runs once - verified by checking the logs for the $media
dump - and that template isn't referenced anywhere else - so it
isn't redierecting off and sending again.
What could it be? I'm a bit stumped for ideas to debug it
Thanks,
Will
oh, cake2.0 rc1
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php