valid email in codeigniter form validation code example
Example: codeigniter form_validation email
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');