Saturday, March 31, 2012

Re: Email mock not working

Hey,

The component is not a problem, it's working fine.
But when I'm testing the code it sends e-mails every time, making the
tests last much longer.
How can I correct it?

Thanks,
Thiago


On 31 mar, 02:03, LITTO CHACKO <li...@axtecindia.com> wrote:
> Why don't you use the cakephp builtin component email???? it is nice and
>
>
>
>
>
>
>
>
>
> > easy to use
> > it can be include by:_
> > public $components = array('Session','Email');
>
> > and can be used to send email by:_
> > $pass = array('fullname'=>$name,'password'=>$p,'url'=>$url,
> > 'reference'=>$reference,'email'=>$email);
> > $this->set('emailValues',$pass);
> > $this->Email->to = $email;
> > $this->Email->subject = 'Welcome Mail fromjustdeals.com';
> > $this->Email->replyTo = 'no-re...@image.com';
> > $this->Email->from    = 'no-reply<no-re...@image.com>';
> > $this->Email->template = 'account_created';
> > $this->Email->sendAs = 'html';
> > $this->Email->send();
>
> > you have a corresponding  account_created.ctp(as in example) file in the
> > folder views_>emails->html->...
>
> > thanks ;
>
> --
> Litto Chacko
> Axtec Softwares

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: