title: Send File Attachment Thought PHP's mail() function
body: <p>I am using PHP's mail function to send an email, but I am going to need to attach a file with that message.</p>
  
  <p>For the most part I believe the item that is going to be attached is going to be a text file and I could just echo out the content into the email if I had to, but I am worried that that eventually the file type will turn into a PDF, Word Document, etc since to the people who will be uploading the files won't know the difference between plain text and their own formats.</p>