-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Joseph,


I post an example I have in a 1.3 app working:

In a controller I want to receive an email in a certain case:
if($this->data['Rating']['kommentar'] != ''){
//  notification that a comment was posted
$this->Email->from    = 'Zigarrenlounge <adre...@zigarrenlounge.eu>';
$this->Email->to      = 'Zigarrenlounge <adre...@zigarrenlounge.eu>';
$this->Email->subject = 'My wonderful email subject';
$this->Email->send('And here come sthe text of the email I want to send.');
}

In my AppController.php  I have:


    var $components = array('Session','Auth','MathCaptcha','Email');

So I have activated the email component.


That should be the magic.... of course on your webserver you need any
email activated, but the avarge hoste has that by default.


Calamity Jane

P.S. I hope I could help for once :)


Am 04.03.2013 19:32, schrieb Joseph zhu:
> Hello there:
> I am a new for cakephp, I want to know how to make send  email function. 
> Who can help me, and give me some detail instructions.
> Thank you so much.
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlE2TpsACgkQbOdiIJzHNKFdJQCgrp4G6MyyZeShNpWVzcFl9MkW
cxcAnRUZIX3pm4Il15qiQj3xyZqq5+37
=aDt2
-----END PGP SIGNATURE-----

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to