Does your code use "\r\n" at the end of everyline in your headers?
Also, you may
need to use chunk_split() and base64_encode to send application/type
data in an
email.
I wrote on this a while back for a class I taught...
http://www.aphion.com/class/class9/attach.html
Username: class
Password: class
Brandon
Quoting Chris Hill <chill-/31Xh4O0eFA@xxxxxxxxxxxxxxxx>:
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--
---------------------------------------------------------------------
To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
talk-help-4zcLI8jJc/rYtjvyW6yDsg@xxxxxxxxxxxxxxxx