I always use smtp delivery, try using this

--
anl


On Fri, Feb 12, 2010 at 2:27 PM, szusty <[email protected]> wrote:

> Hi all.
>
> I have a problem with Email i cakePHP. I'm check a example from
> http://book.cakephp.org/pl/view/269/Sending-a-basic-message end nothig
> do. So I'm find a some other example and I don't know why against
> don't work mi ;/
>
> Please help mi.
>
>
> <?php
> class MailerController extends AppController {
>
>    var $name = 'Mailer';
>
>    var $uses = '';
>
>
>    function sendSimpleMail() {
>        $this->Email->to = '[email protected]';
>        $this->Email->subject = 'Cake test simple email';
>        $this->Email->replyTo = '[email protected]';
>        $this->Email->from = 'Cake Test Account
> <[email protected]>';
>        $this->Email->template = null;
>
>        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('/');
>    }
> }
> ?>
>
>
> This code should be work but I also hawe info 'Simple email not
> sent' ;/
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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