I believe one of your boundarys has -- at the end.  According to the RFC 
dealing with this subject, stick -- on the end of only the last boundary.

-Jason Garber
IonZoft.com








At 02:13 PM 10/12/2001 +0530, Sharat Hegde wrote:
>Hello,
>
>I am trying to send multiple attachments by email from my PHP program (two
>to be precise).
>
>I have put the relevant codes to send attachments, and separated it with the
>Message Boundary. The first attachment comes fine. The second attachment is
>also coming to my Inbox, but for some reason, Outlook Express (my mail
>client) does not recognize the 2nd attachment. The message header and the
>size of the email indicates that the content has two attachments.
>
>Any clues?
>
>The email looks like this after the standard headers for From and To:
>
>MIME-Version: 1.0
>Content-Type: multipart/mixed; boundary="Message-Boundary"
>
>This is a MIME encoded message.
>
>--Message-Boundary
>Content-Type: text/plain; charset="iso-8859-1"
>
>Testing mail component
>
>--Message-Boundary
>Content-Type: application/octet-stream; name="ValleyView1.csv"
>Content-Transfer-Encoding: base64
>Content-Disposition: attachment; filename="ValleyView1.csv"
>
>Um9vbUlkLFNlcmlhbE51bWJlcixEaXNwbGF5T3JkZXIsRGVzY3JpcHRpb24sUmF0ZVR5cGUsQWR1
>bHRQcmljZSxDaGlsZFByaWNlLE51bURheXMsTWluUGVyc29ucyxNYXhQZXJzb25zLEFwcGxpY2Fi
>bGVEYXlzClIwMDIsMiwxLERvdWJsZSAzIG5pZ2h0cyxWQUwsMjI1LjAwLDAuMDAsMywxLDIsIjAs
>MSwyIgpSMDAyLDEsMixEb3VibGUgNCBuaWdodHMsVkFMLDI4MC4wMCwwLjAwLDQsMSwyLCIwLDEi
>Cg==
>
>--Message-Boundary--
>Content-Type: application/octet-stream; name="junk.txt"
>Content-Transfer-Encoding: base64
>Content-Disposition: attachment; filename="junk.txt"
>
>SnVuayBUZXh0IEZpbGUKTGluZTIKTGluZTMK
>
>--Message-Boundary--
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to