I wind up with an email and attachment but its corrupted or as Acrobat states, "was sent via email and hasn't been correctly decoded".
I'm guessing I'm not using the correct MIME type, and google has come up with several different ones for .pdf files.
This is the line of code to add the attachment:
Code: Select all
$email ->addAttachment ( "pdf_files/".$filename.".pdf", $filename, "application/x-pdf");Is my mime type wrong or do you think I've got my path to the file incorrect? (I'll go and test that in a sec!)