have to create 'html' and 'text' in both views and elements
directory....
besides why would i use both 'text' and 'html' if one of them is
enough to customize my emails...
and when we set the template using the Email Component it seems to
refer to the files in the views/elements/email directory and no the
ones in views/email directory
On 29 jul, 04:13, Louie Miranda <lmira...@gmail.com> wrote:
> Try this..
>
> class AccountsController extends AppController
> {
> var $name = "Accounts";
> var $components = array('Email');
>
> function email() {
> $this->Email->from = 'Somebody <someb...@example.com>';
> $this->Email->to = 'Louie Miranda <louiemira...@example.com>';
> $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: lmira...@gmail.com
> - Web:http://www.louiemiranda.com
>
>
>
> On Thu, Jul 29, 2010 at 10:41 AM, huoxito <huox...@gmail.com> 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 sitehttp://cakeqs.organd 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+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment