Re: Send email Shell Application

2012-05-02 Thread Tony Presnow
I recently upgraded from cakephp 2.0.6 to 2.1.1 and started having problem sending out nightly emails. I'm getting smtp connection time out errors. Nothing has changed on the email server, and emails generated from website forms are still working ... Is it possible that the connection is being

Re: Send email Shell Application

2012-04-03 Thread euromark
@zuesman sry, but the component stuff is pretty misplayed here @Fernando as I mentioned before you need to make sure that all email settings have been passed on to the class. SMTP settings for instance (unless your server can use mail() right away). Am Dienstag, 3. April 2012 21:23:34 UTC+2 sch

Re: Send email Shell Application

2012-04-03 Thread zuesman
This is from some old code, so I cannot guarantee it still works. I think it was 1.2 code. class EmailShell extends Shell { var $view_vars = array(); public function __construct(&$dispatch) { App::import('Core', 'Controller'); App::import('Component', 'Email'

Re: Send email Shell Application

2012-04-02 Thread Fernando Andreacci
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'

Re: Send email Shell Application

2012-04-02 Thread euromark
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

Re: Send email Shell Application

2012-04-02 Thread Fernando Andreacci
euromark I could not figure out how to make it work, Can you help me with an example? On Sat, Mar 31, 2012 at 6:01 AM, euromark wrote: > @LITTO CHACKO: > he wants to use it inside a shell, so he has to use the CakeEmail class > (and not the compontent!) > > take a look at this question (as he a

Re: Send email Shell Application

2012-03-31 Thread euromark
@LITTO CHACKO: he wants to use it inside a shell, so he has to use the CakeEmail class (and not the compontent!) take a look at this question (as he already figured it out pretty good): http://ask.cakephp.org/questions/view/send_email_shell_application the only thing missing is that he should pa

Re: Send email Shell Application

2012-03-30 Thread LITTO CHACKO
Why don't you use the cakephp builtin component email it is nice and easy to use it can be include by:_ public $components = array('Session','Email'); and can be used to send email by:_ $pass = array('fullname'=>$name,'password'=>$p,'url'=>$url, 'reference'=>$reference,'email'=>$email); $this-

Re: Send email Shell Application

2012-03-30 Thread stork
> I found no documentation about it. What means "it"? http://book.cakephp.org/2.0/en/console-and-shells.html http://book.cakephp.org/2.0/en/core-utility-libraries/email.html -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questi