Re: Sending two attachments

From: Date: Mon, 29 Oct 2001 13:37:29 +0000
Subject: Re: Sending two attachments
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72714@lists.php.net to get a copy of this message
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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#72714) next »