logo       

Help on making email attachments: msg#00021

php.tcphp

Subject: Help on making email attachments

Hi folks. I'm having a heck of a time attaching a pdf file to an email using PHP.

The email goes where it's supposed to, the subject line is correct, and the from header works. But something about the way I'm using MIME does not make the POP3 (or whatever) server think there's an attachment.

For additional headers, I'm sending the following:

MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="b6af26a394300c80bb97cf63e62bbf15a768"

The content of the message follows. All lines in the message terminate with "\r\n".

I'd be very grateful if someone with better skills than mine took a look at the message MIME content and gave me their thoughts. Thanks!

Chris

MESSAGE CONTENT:

This is a MIME encoded message. If you are reading this, your email client does not support MIME. Please upgrade your email client.

--b6af26a394300c80bb97cf63e62bbf15a768

Content-Type: text/plain; charset="iso-8859-1"

Content-Transfer-Encoding: 7bit



The file you requested, blahblahblah.pdf, is attached.

Thank you for your business.

--b6af26a394300c80bb97cf63e62bbf15a768

Content-Type: application/pdf; name="blahblahblah.pdf"

Content-Transfer-Encoding: base64

Content-disposition: attachment; file="blahblahblah.pdf"



JVBERi0xLjINJeLjz9MNCjggMCBv ... <snip most of base64-encoded content> ... JlZg0KMTE2DQolJUVPRg0K



--b6af26a394300c80bb97cf63e62bbf15a768--


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise