- How to send email?
- public function send_mailtest()
{
$this->load->library(’email’);
$this->email->from(‘test_from@test.com’, ‘testname’);
$this->email->to(‘test_to@test.com’);
//$this->email->cc(‘another@another-example.com’);
//$this->email->bcc(‘them@their-example.com’);
$this->email->subject(‘Email Test’);
$this->email->message(‘Testing the email class.’);
echo $this->email->send();
}
- public function send_mailtest()
- Validation – https://www.codeigniter.com/userguide3/libraries/form_validation.html
- Form Helper – https://www.codeigniter.com/userguide3/helpers/form_helper.html