Friday, March 30, 2012

Re: Send email Shell Application


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->set('emailValues',$pass);
$this->Email->to = $email;
$this->Email->subject = 'Welcome Mail from justdeals.com';
$this->Email->replyTo = 'no-reply@image.com';
$this->Email->from  = 'no-reply<no-reply@image.com>';
$this->Email->template = 'account_created';
$this->Email->sendAs = 'html';
$this->Email->send();

you have a corresponding  account_created.ctp(as in example) file in the folder views_>emails->html->... 

thanks ;

Litto Chacko
Axtec Softwares

--
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: