Does it work if you send the email from a controller? Does it work if
you send the email from a normal PHP script?

On Tue, Aug 7, 2012 at 6:09 AM, NewBie <[email protected]> wrote:
>  I write a Shell for sending email like this :
>
> <?php
> class SendMailShell extends Shell {
>     function main() {
>         App::import('Core', array('Controller'));
>         App::import('Component', array('Email'));
>         $this->Controller =& new Controller();
>         $this->Email =& new EmailComponent();
>         $this->Email->startup($this->Controller);
>         $this->Email->reset();
>         $this->Email->to = 'Jonny <[email protected]>';
>         $this->Email->subject = "Subject";
>         $this->Email->from = "[email protected]";
>         $this->Email->template = 'default';
>         $this->Email->sendAs = "html";
>         $this->Email->send();
>     }
> }
> ?>
>
> ---- Program execute successfully, but Email do not send to [email protected].
>      I research and do like some guild line in internet but not done.
>      Please help me!
>
> --
> 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

-- 
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

Reply via email to