Still stuck on this.

Whats odd is it is sending duplicates to my work email, and another
pop type email - but if i set the to my gmail, just the one email.

Seems odd.  Must be a reason.

w

On Sep 14, 4:25 pm, "#2Will" <willjbar...@gmail.com> wrote:
> Hello
>
> My little app is sending duplicates of itsemails.
>
> 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to