Monday, April 2, 2012

Re: Send email Shell Application

The code:


class
EmailShell extends AppShell { #public $uses = array('Empresa', 'Licenca'); public function main() { App::uses('CakeEmail', 'Network/Email'); $email = new CakeEmail(); $email->from(array('EMAIL' => 'EMAIL')); $email->to('EMAIL'); $email->subject('About'); $email->send('My message'); $this->out('OK'); } }





On Mon, Apr 2, 2012 at 1:33 PM, euromark <dereuromark@googlemail.com> wrote:
without seeing the code you already tried out so far it is impossible to help you


Am Montag, 2. April 2012 16:11:33 UTC+2 schrieb Fernando:
euromark  

I could not figure out how to make it work,

Can you help me with an example?



--
Fernando Andreacci
Biólogo
Fone +55 47 9921 4015
fandreacci@gmail.com

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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



--
Fernando Andreacci
Biólogo
Fone +55 47 9921 4015
fandreacci@gmail.com

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: