this is my code for email sending but it is not working ,it shows no error but email sending is not working.
function resetPasswordUser()
{
$this->load->view('forgotPassword');
$username=$this->input->post('username');
$email=$this->Dashboard_model->forgetPassword($username); print_r($email);
$config = array(
'protocol'=>'smtp',
'smtp_host'=>'ssl://smtp.googlemail.com',
'smtp_port'=>465,
'smtp_user'=>'xxxxxx',
'smtp_pass'=>'xxxxx'
);
$this->load->library('email',$config);
$this->email->set_newline("\r\n");
$this->email->from('ankittiwari.rps@gmail.com', "My Name");
$this->email->to($email);
$this->email->subject('Test');
$this->email->message('enter on the following link');
$this->email->send();
$msg=$this->email->print_debugger();
print_r($msg);
}