title: Send Email with codeigniter(configuration) from my own server
body: <p>In the past I have already send Email through the google smtp now I want to send Email from my own server.</p>
  
  <p>I have followed <a href="http://ellislab.com/forums/viewthread/150003/#1055124" rel="nofollow">this example</a> to setup my email config file. This is how my email.php file looks like:</p>
  
  <pre><code>$config['useragent']        = 'CodeIgniter';        
  $config['protocol']         = 'mail';        
  $config['mailpath']         = '/usr/sbin/sendmail';
  $config['smtp_host']        = 'localhost';
  $config['smtp_user']        = 'noreply@publish.mmedija.com';
  $config['smtp_pass']        = 'testtest';
  $config['smtp_port']        = 25;
  $config['smtp_timeout']     = 5;
  $config['wordwrap']         = TRUE;
  $config['wrapchars']        = 76;
  $config['mailtype']         = 'text';
  $config['charset']          = 'utf-8';
  $config['validate']         = FALSE;
  $config['priority']         = 3;
  $config['crlf']             = "\r\n";
  $config['newline']          = "\r\n";
  $config['bcc_batch_mode']   = FALSE;
  $config['bcc_batch_size']   = 200;
  </code></pre>
  
  <p>I have an Apache server. I have DirectAdmin software, with which I have setup an email account(noreply@publish.mmedija.com) with password(testtest). Are this the stmp_user and smtp_pass that I have to set in the config file.</p>
  
  <p>It is strange, because:</p>
  
  <pre><code>$this-&gt;email-&gt;send()
  </code></pre>
  
  <p>returns True, but no Email is sent. print_debugger returns this:</p>
  
  <pre><code>Your message has been successfully sent using the following protocol: mail
  User-Agent: CodeIgniter
  Date: Thu, 11 Jul 2013 08:36:13 +0200
  From: "Publishwall.si" 
  Return-Path: 
  Reply-To: "noreply@publish.mmedija.com" 
  X-Sender: noreply@publish.mmedija.com
  X-Mailer: CodeIgniter
  X-Priority: 3 (Normal)
  Message-ID: &lt;51de525d9d15a@publish.mmedija.com&gt;
  Mime-Version: 1.0
  Content-Type: text/plain; charset=utf-8
  Content-Transfer-Encoding: 8bit
  =?utf-8?Q?Publishwall.si_-_Aktivacija_ra=c4=8duna?=
  test 
  </code></pre>
  
  <p>But I have not received the email. Also the field "Reply-To" in the debugger is not the one that I set to send the mail to. Maybe there is something wrong with my configuration in php.ini:</p>
  
  <pre><code>[mail function]
  ; For Win32 only.
  ; http://php.net/smtp
  SMTP = localhost
  ; http://php.net/smtp-port
  smtp_port = 25
  
  ; For Win32 only.
  ; http://php.net/sendmail-from
  ;sendmail_from = me@example.com
  
  ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  ; http://php.net/sendmail-path
  ;sendmail_path =
  </code></pre>