also dont forget to set a valid domain for your messageId manually, as the 
CLI does not know the domain your website runs on.
http://book.cakephp.org/2.0/en/appendices/2-2-migration-guide.html#cakeemail


Am Donnerstag, 18. Oktober 2012 19:35:00 UTC+2 schrieb cricket:
>
> Have you checked the mail log(s)? 
>
> On Wed, Oct 17, 2012 at 6:22 PM, GerarD <[email protected] <javascript:>> 
> wrote: 
> > Hello... The problem I'm facing is that I'm trying to send an email from 
> the 
> > shell with no success. Here is what I have: 
> > 
> > function sendNewDistributor($address, $password, $id) { 
> > 
> > App::uses('CakeEmail', 'Network/Email'); 
> > 
> > $email = new CakeEmail('default'); 
> > 
> > $email->to($address); 
> > 
> > $email->template('distributor_welcome'); 
> > $email->subject('Registro'); 
> > $email->viewVars(array('password' => $password)); 
> > $email->viewVars(array('id' => $id)); 
> > if($email->send()){ 
> > 
> > return true; 
> > 
> > } 
> > return false; 
> > 
> > } 
> > 
> > I have this same function as part of a Model and it works from a HTTP 
> > request. I use Mercury as my email server, and it shows in the Core 
> Process 
> > Window that the action has been done as normal, but the email never 
> > arrives... What could it be.? 
> > 
> > 
> > -- 
> > 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 [email protected]<javascript:>. 
>
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:>. 
> > Visit this group at http://groups.google.com/group/cake-php?hl=en. 
> > 
> > 
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to