note 73774 added to function.mail

From: Date: Fri, 09 Mar 2007 18:05:07 +0000
Subject: note 73774 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-124273@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.197 Probable Submitter: 74.104.162.99 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/73774 Del: integrated -- https://master.php.net/note/delete/73774/integrated Del: useless -- https://master.php.net/note/delete/73774/useless Del: bad code -- https://master.php.net/note/delete/73774/bad+code Del: spam -- https://master.php.net/note/delete/73774/spam Del: non-english -- https://master.php.net/note/delete/73774/non-english Del: in docs -- https://master.php.net/note/delete/73774/in+docs Del: other reasons-- https://master.php.net/note/delete/73774 Reject -- https://master.php.net/note/reject/73774 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124273) next »