title: Can't send email via codeinginter using cpanel email account
body: <p>I have problem when sending email from my server to somebody account
  i mean that i need to send email from 
  <strong>myemail@mydomain.com</strong> to any another account Whether <strong>Live, hotmail or gmail</strong> etc.
  of course that from <code>PHP script</code></p>
  
  <p>I have been created email account from my <code>CPanel</code>, and i tried to send email by this code.</p>
  
  <pre><code>$config['protocol'] = 'smtp';
  $config['smtp_host'] = "mail.mydomain.com";
  $config['smtp_user'] = "myemail@mydomain.com";
  $config['smtp_pass'] = "password";
  $config['smtp_port'] = "25";
  
  $this-&gt;load-&gt;library('email',$config);
  
  $this-&gt;email-&gt;from("myemail@mydomain.com", 'test');
  
  $this-&gt;email-&gt;to("actualemail@live.com"); // the user email
  
  $this-&gt;email-&gt;subject("hello");
  
  $this-&gt;email-&gt;message("test test test");
  
  if (!$this-&gt;email-&gt;send()) {
      echo "error";
      //$this-&gt;email-&gt;print_debugger();
      exit;
  }
  //$this-&gt;email-&gt;print_debugger();
  //exit;
  echo "success";
  </code></pre>
  
  <p><strong>Note that</strong> i'm using codeigniter framework.
  The strange is there is no any problem in sending email , i get success message, but when i go to my receive email account i not found
  any email. what to do, I'm boring form a lot of attempts :( .</p>