If you look at the code, you'll notice that it returns exactly the
same thing as php mail() will return.

On Sep 18, 7:48 am, Bert Van den Brande <[email protected]> wrote:
> Have you tested the PHP mail() function directly ?
>
> The problem with the EmailComponent is that it hides any indicative mail
> errors that would help you find the cause for the problem ...
>
> I usually debug into the EmailComponents send code ...
>
> On Fri, Sep 18, 2009 at 7:00 AM, damanlovett <[email protected]>wrote:
>
>
>
> > I have read every tutorial and discussion but I can't get the email to
> > send out.  Below is  an excerpt from my controller. It redirects fine,
> > but I still get "Simple email not sent".  Is there some setting in the
> > core or somewhere else that I'm missing?
>
> > var $components = array('Email');
>
> >        function sendemail(){
>
> >        $this->Email->to = '[email protected]';
> >        $this->Email->subject = 'Cake test simple email';
> >        $this->Email->replyTo = 'nore...@localhost';
> >        $this->Email->from = 'Cake Test Account <nore...@localhost>';
> >                $this->Email->delivery = 'mail';
>
> >        if ( $this->Email->send('Here is the body of the email') ) {
> >            $this->Session->setFlash('Simple email sent');
> >        } else {
> >            $this->Session->setFlash('Simple email not sent');
> >        }
> >        $this->redirect('/offices');
> >    }
>
>
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to