Sending PDF-Doc as mail

From: Date: Sun, 22 Jul 2001 09:21:10 +0000
Subject: Sending PDF-Doc as mail
Groups: php.general 
Request: Send a blank email to php-general+get-59051@lists.php.net to get a copy of this message
Hello! I want to send a PDF-file as a mail. The problem: I want, that the user get's the PDF-document as soon as he clicks on the mail. That means: No text-part of the mail, the user should not have to click on the attachment-button of his mail-client. I tried: 1.) Set the header to something like: $header = "From: <mamail@myhost.de>\n"; $header .= "Content-Type: application/pdf\n"; $header .= "Content-Transfer-Encoding: base64\n"; $header .= "Content-Desciption: My PDF-Doc"; Works in: StarOffice Doesn't work in Netscape and M$-Outlook 2.) Use a multipart-message: Works in: StarOffice Doesn't work in Netscape and M$-Outlook Any idea, how this is done? Martin

« previous php.general (#59051) next »