title: codeigniter mail - i can send email but i can't received it
body: <p>I am using this code to send email via localhost.</p>
  
  <pre><code>function send_email(){
          date_default_timezone_set('Asia/Manila');
  
          $ci =&amp; get_instance();
          $ci-&gt;load-&gt;library('email');
  
          $config['protocol'] = "mail";
          $config['smtp_host'] = "ssl://mail.smsgt.com";
          $config['smtp_port'] = "25";
          $config['smtp_user'] = "myemail@smsgt.com"; 
          $config['smtp_pass'] = "";
          $config['charset'] = "utf-8";
          $config['mailtype'] = "text";
          $config['newline'] = "\r\n";
          $config['crlf'] = "\r\n";
  
          $ci-&gt;email-&gt;initialize($config);
  
          $ci-&gt;email-&gt;from('sender@email.com', 'company email');
          $ci-&gt;email-&gt;to('receiver@gmail.com'); 
          $ci-&gt;email-&gt;subject('test subject');
          $ci-&gt;email-&gt;message("testing email");
  
          $check = $ci-&gt;email-&gt;send();
  
          //echo $ci-&gt;email-&gt;print_debugger(); 
  
          if ($check){
            echo "true";
          }else{
            echo "false";    
          }
  }
  </code></pre>
  
  <p>It always shows true but still I cant received it. What is problem with my codes? or is there something wrong?</p>