Essentially what I\'m trying to do is attach a file to an email I\'m sending out. Simple enough, right? For some reason or another it does not like the following code (presu
Please please please don't build your own MIME emails. Use PHPMailer or Swiftmailer, which do almost everything for you. You can replace you entire script with about 5 or 6 lines of code.
And best of all, they'll give you far better error messages/diagnostics than the pathetically stupid mail()
function ever will.