Sender address is not valid when send email Codeigniter
<p>I will make mail delivery system using PHP CodeIgniter. Email successfully submitted, but when I check my email, the sender mail is my <strong>smtp_user</strong>, not the real email sender.</p>

<p>for example: My <strong>smtp_user</strong> is a@gmail.com. When user send mail to me, sender mail is a@gmail.com, not user@gmail.com.</p>

<p>Here is my code in <strong>email.php</strong> :</p>

<pre><code>$config['wordwrap'] = TRUE;
$config['protocol'] = "smtp";
$config['smtp_host'] = "ssl://smtp.gmail.com";
$config['smtp_port'] = "465";
$config['smtp_user'] = "a@gmail.com";
$config['smtp_pass'] = "blablabla";
$config['charset'] = "utf-8";
$config['mailtype'] = "html";
$config['priority'] = "1";
$config['newline'] = "\r\n";
</code></pre>

<p>And here is my controller :</p>

<pre><code>$this-&gt;load-&gt;library('email');
$link=base_url()."verification/".$verification_code."";
$body="Thanks for joining &lt;br&gt; Your code verification is 
      &lt;a href=".$link." target='_blank'&gt;".$link."&lt;/a&gt;";
$this-&gt;email-&gt;from($this-&gt;input-&gt;post('mails'), strtoupper($name));
$this-&gt;email-&gt;to('b@gmail.com');                        
$this-&gt;email-&gt;subject('New account registration');
$this-&gt;email-&gt;message($body);
$this-&gt;email-&gt;send());
</code></pre>

<p>What's wrong with my <strong>config email</strong>?</p>

<p>but if I using smtp_host with mandrillapp, I did'nt see the problem like above.</p>