note 73774 deleted from function.mail by cmb

From: Date: Fri, 15 May 2015 19:25:47 +0000
Subject: note 73774 deleted from function.mail by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-202552@lists.php.net to get a copy of this message
Note Submitter: Josh ---- While trying to send attachments I ran into the problem of having the beginning part of my encoded data being cut off. A fact that I didn't see mentioned anywhere explicitly (except maybe in the RFC, which admittedly I didn't read fully) was that two newlines are required before you start the encoded data: Content-Transfer-Encoding: base64\n Content-Type: application/zip; name="test_file.zip"\n \n //<--- if this newline isn't here your data will get cut off DATA GOES HERE

« previous php.notes (#202552) next »