cakephp - CakeEmail Attachement Files -


i'm using cakephp develop application. i'm trying send email attachment file 'ics' got error 'file not found ...' here's i've done untill :

$email = new cakeemail(); $email->to('admin2@gmail.com'); $email->subject('test'); $email->replyto('company@gmail.com'); $email->from (array('company@gmail.com'=>'company'));  $email->attachments (array(array('file'=>root.'/app/webroot/files/calendar.ics','mimetype'=>'text/calendar'))); $email->sendas = 'html'; if($this->email->send()){ $this->session->setflash("email sent");} else { $this->session->setflash("email not sent");} } 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -