title: Send base64 encoded email using CodeIgniter
body: <p>I am trying to send base64 encoded email using CodeIgniter.
  Below the code:</p>
  
  <pre><code>$message = base64_encode($body);
  $config = Array('protocol' =&gt; 'smtp', 'smtp_host' =&gt; $smtp, 'smtp_port' =&gt; $port, 'smtp_user' =&gt; $user, 'smtp_pass' =&gt; $pass, 'mailtype' =&gt; 'html', 'charset' =&gt; 'utf-8','_bit_depths' =&gt; array('7bit', '8bit', 'base64'),'_encoding' =&gt; 'base64',);
  
  $this-&gt;load-&gt;library('email', $config);
  $this-&gt;email-&gt;set_newline("\r\n");
  $this-&gt;email-&gt;from($disemail, $disname);
  $this-&gt;email-&gt;reply_to($disemail, $disname);
  $this-&gt;email-&gt;to($email);
  $this-&gt;email-&gt;subject($subject);
  $this-&gt;email-&gt;message($message); 
  </code></pre>
  
  <p>But email is not sending properly. Instead of base64 decode i have just found base64 encoded text in mail.</p>
  
  <p>Here is the debug of the sending: </p>
  
  <blockquote>
    <p>Mime-Version: 1.0</p>
    
    <p>Content-Type: multipart/alternative; boundary="B_ALT_5596ca8577c5c"
    This is a multi-part message in MIME format. Your email application
    may not support this format.</p>
    
    <p>--B_ALT_5596ca8577c5c Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64</p>
    
    <p>PGh0bWw+PGJvZHk+PGgxPnRoaXMgaXMgaHRtbDwvaDE+PC9ib2R5PjwvaHRtbD4=</p>
    
    <p>--B_ALT_5596ca8577c5c Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable</p>
    
    <p>PGh0bWw+PGJvZHk+PGgxPnRoaXMgaXMgaHRtbDwvaDE+PC9ib2R5PjwvaHRtbD4=3D</p>
    
    <p>--B_ALT_5596ca8577c5c--</p>
  </blockquote>
  
  <p>I couldn't find the exact problem. 
  I am using CodeIgniter version <code>2.1.3</code> .</p>