codeigniter_tutorial
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
CodeIgniter<br />
$this->email->subject('Email Test');<br />
$this->email->message('Testing the email class.');<br />
successfully.");<br />
Email.");<br />
}<br />
?><br />
}<br />
//Send mail<br />
if($this->email->send())<br />
else<br />
$this->session->set_flashdata("email_sent","Email sent<br />
$this->session->set_flashdata("email_sent","Error in sending<br />
$this->load->view('email_form');<br />
Create a view file called email_form.php and save it at<br />
application/views/email_form.php<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
CodeIgniter Email Example<br />
echo $this->session->flashdata('email_sent');<br />
echo form_open('/Email_controller/send_mail');<br />
<br />
<br />
echo form_close();<br />
47