Hey all! So I've got my PDF creation working, and I'm now trying to attach it to my MIME mail.
I've looked up the mime->addAttachment documentation here:
http://pear.php.net/manual/en/package.mail.mail-mime.addattachment.php
The part I'm confused about is the: string $c_type = 'application/octet-stream'
In the documentation it says "string $c_type - The content type of the image or file."
In my books it says to add an attachment ot the message, such as a graphic or an archive, call mail_mime::addAttachment()
The specific example is:
$file = '/path/to/file.png';
$mime->addAttachment($file, 'image/png')
So in my case, I want to attach a PDF. However the documentation does not say what the potential keywords are for the second argument. So I tried,
"$mime->addAttachment($file, 'document/pdf')" This does not seem to have worked.
Does anyone have any suggestions? As always, your help is much appreciated!