Hi I have a small issue with my $data on the $mesg = $this->load->view(‘information/eview’, $data, true); It only works sending the template if have $data. But on the confirmation sent page it show up as
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: data
Filename: controllers/contact.php
Line Number: 47
this->config->load('email');
$config = array(
'charset'=>'utf-8',
'wordwrap'=> TRUE,
'mailtype' => 'html'
);
$this->email->initialize($config);
$this->email->from($this->input->post('email'), $this->input->post('name'));
$this->email->to($this->config->item('smtp_user'));
$this->email->subject('subject');
$mesg = $this->load->view('information/eview', $data, true); // line 47
$this->email->message($mesg);