title: ion auth forgot password mail not received in mail account
body: <p>In ion auth my forgot password mail sent successfully but not received in my email account...
  I have searched many tutorials but can't find any solution.</p>
  
  <p>Please Help me to solve this.</p>
  
  <p>my email config file
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>$config['email_config'] = array(
      'mailtype' =&gt; 'html',
      'protocol' =&gt; 'smtp',
  
      'smtp_host' =&gt; 'ssl://smtp.gmail.com',
      'smtp_port' =&gt; '465',
      'smtp_user' =&gt; 'k10kevalam@gmail.com',
      'smtp_pass' =&gt; 'k10@kevalam',
  
  );</code></pre>
  </div>
  </div>
  
  in ion_auth config</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>$config['use_ci_email'] = TRUE; // Send Email using the builtin CI email class, if false it will return the code and the identity
  
  $config['email_config'] = 'file';</code></pre>
  </div>
  </div>
  </p>
  
  <p>in ion_auth.php library</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>if ($this-&gt;email-&gt;send())
    {
               echo $this-&gt;email-&gt;print_debugger();
               $this-&gt;set_message('forgot_password_successful');
        return TRUE;
          }</code></pre>
  </div>
  </div>
  </p>
  
  <p>display message :"email sent"</p>
  
  <p>in my ion_auth.php controller</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>function forgot_password()
   {
              {
       $this-&gt;form_validation-&gt;set_rules('email', $this-&gt;lang-&gt;line('forgot_password_username_identity_label'), 'required');
    }
    else
    {
       $this-&gt;form_validation-&gt;set_rules('email', $this-&gt;lang-&gt;line('forgot_password_validation_email_label'), 'required|valid_email');
    }
  
  
    if ($this-&gt;form_validation-&gt;run() == false)
    {
     //setup the input
     $this-&gt;data['email'] = array('name' =&gt; 'email',
      'id' =&gt; 'email',
     );
  
     if ( $this-&gt;config-&gt;item('identity', 'ion_auth') == 'username' ){
      $this-&gt;data['identity_label'] = $this-&gt;lang-&gt;line('forgot_password_username_identity_label');
     }
     else
     {
      $this-&gt;data['identity_label'] = $this-&gt;lang-&gt;line('forgot_password_email_identity_label');
     }
  
     //set any errors and display the form
     $this-&gt;data['message'] = (validation_errors()) ? validation_errors() : $this-&gt;session-&gt;flashdata('message');
     $this-&gt;_render_page('auth/forgot_password', $this-&gt;data);
    }
    else
    {
     // get identity from username or email
     if ( $this-&gt;config-&gt;item('identity', 'ion_auth') == 'username' ){
      $identity = $this-&gt;ion_auth-&gt;where('username', strtolower($this-&gt;input-&gt;post('email')))-&gt;users()-&gt;row();
     }
     else
     {
      $identity = $this-&gt;ion_auth-&gt;where('email', strtolower($this-&gt;input-&gt;post('email')))-&gt;users()-&gt;row();
     }
                if(empty($identity)) {
  
                 if($this-&gt;config-&gt;item('identity', 'ion_auth') == 'username')
                 {
                                     $this-&gt;ion_auth-&gt;set_message('forgot_password_username_not_found');
                 }
                 else
                 {
                    $this-&gt;ion_auth-&gt;set_message('forgot_password_email_not_found');
                 }
  
                    $this-&gt;session-&gt;set_flashdata('message', $this-&gt;ion_auth-&gt;messages());
                    redirect("auth/forgot_password", 'refresh');
                }
  
     //run the forgotten password method to email an activation code to the user
     $forgotten = $this-&gt;ion_auth-&gt;forgotten_password($identity-&gt;{$this-&gt;config-&gt;item('identity', 'ion_auth')});
  
     if ($forgotten)
     {
      //if there were no errors
      $this-&gt;session-&gt;set_flashdata('message', $this-&gt;ion_auth-&gt;messages());
      
                                  redirect("auth/login", 'refresh'); //we should display a confirmation page here instead of the login page
     }
     else
     {
      $this-&gt;session-&gt;set_flashdata('message', $this-&gt;ion_auth-&gt;errors());
                                      
                          redirect("auth/forgot_password", 'refresh');
     }
    }
   }</code></pre>
  </div>
  </div>
  </p>
  
  <p>What should i change.?</p>
  
  <p>Your Help would Be Appreciated.</p>
  
  <p>Thanks in Advance...</p>