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 <gerard...@gmail.com> 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 cake...@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+u...@googlegroups.com .
> 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 cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment