title: Codeigniter attachments with email not going properly or corrupted
body: <p>I am sending an email with codeigniter, and in email attachment is also sending......
  When i send an email on "Gmail" its working fine and attachment attached with that email is of correct size and opening properly, but when i send an email other than gmail account, attachment size is not correct, and its showing as corrupt..</p>
  
  <p>Below is the code, can you please let me know how to resolve the issue:</p>
  
  <pre><code>            $this-&gt;load-&gt;library('email');
              $this-&gt;email-&gt;set_newline("\r\n");
              $this-&gt;email-&gt;from('eEmail address');
              $this-&gt;email-&gt;to("emailaddress"); 
  
              $message = "Message Here";
              $subjet = "Email with attachment";
              $this-&gt;email-&gt;subject($subjet);
              $this-&gt;email-&gt;message($message);
  
              $this-&gt;email-&gt;set_mailtype("html");
              $this-&gt;email-&gt;attach('resources/uploads/pdfs/'.strtoupper($prorder).".pdf");
              $send = $this-&gt;email-&gt;send();
  </code></pre>
  
  <p>Please please help me...</p>