Welcome Guest, Not a member yet? Register   Sign In
i am trying to pass variables with the subject in the send mail
#1

[eluser]dinisptc[/eluser]
i am trying to pass variables with the subject in the send mail

Code:
function send_mail($dist_list,$report_file,$reply_to,$name_of_project_manager,$date_meeting,$report_name) {
   $this->load->library( 'email' );
   $this->email->from($reply_to,$name_of_project_manager);
   $this->email->to($dist_list);
   $this->email->reply_to($reply_to);
  
   //this does not work
   //$this->email->subject('Report construction '.$report_name.' from '.$date_meeting.' by on');
  
  
   $this->email->subject('Report construction by on');
  
   $data=array();  
   $message = $this->load->view('reports_sendmail_tpl/send_report.tpl.php',$data,TRUE);

    $this->email->message($message);
  
  
  
  
  
   $this->email->attach($report_file);
   $this->email->send();
}


//$this->email->subject('Report construction '.$report_name.' from '.$date_meeting.' by on');

this line gives an error and its not sending the email


Messages In This Thread
i am trying to pass variables with the subject in the send mail - by El Forum - 12-24-2013, 10:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB