Try this..
class AccountsController extends AppController
{
var $name = "Accounts";
var $components = array('Email');
function email() {
$this->Email->from = 'Somebody <[email protected]>';
$this->Email->to = 'Louie Miranda <[email protected]>';
$this->Email->subject = 'Test / Developer Code PHP CAKEPHP';
$this->Email->send('Hello message body from LOUIE MIRANDA
CAKEPHP!');
}
}
It's actually very simple. Just add the email component and create a
function.
--
Louie Miranda
- Email: [email protected]
- Web: http://www.louiemiranda.com
On Thu, Jul 29, 2010 at 10:41 AM, huoxito <[email protected]> wrote:
> Am I the only one who finds the Email Component doc,
> http://book.cakephp.org/view/1286/Sending-a-basic-message, really
> weird?
>
> I mean i'll have to try out a lot of things here to understand how it
> works...
>
> 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