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 = 'ass...@o2.pl';
        $this->Email->subject = 'Cake test simple email';
        $this->Email->replyTo = 'nore...@example.com';
        $this->Email->from = 'Cake Test Account
<nore...@example.com>';
        $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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to