title: Send email with an attachment in Codeigniter
body: <p>I am using the Codeigniter library to send an email with an attachment, the file I want to attach is in the following directory</p>
  
  <pre><code>/uploads/pdf/yourfile.pdf
  </code></pre>
  
  <p>How would I attach this in relation to its fullpath? E.g How can I find the correct path (not URL) for this file.</p>
  
  <pre><code> $this-&gt;email-&gt;attach('/path/uploads/pdf/yourfile.pdf');
  </code></pre>
  
  <p>How can I determine what should replace 'path' in the line above</p>