... $config['mailtype'] = 'html'; $this->email->initialize($config); $message = $this->load->view('summary'); $this->email->subject('Summary'); $this->email->message($message); $this->email->send(); ...
$message = $this->load->view('summary','',true);
$data['username'] = 'Joe'; $message = $this->load->view('summary',$data,TRUE);