note 106687 deleted from function.imap-append by thiago

From: Date: Tue, 29 Nov 2011 13:03:52 +0000
Subject: note 106687 deleted from function.imap-append by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184767@lists.php.net to get a copy of this message
Note Submitter: Bill Christo ---- Just to add to what I wrote below. The below code, which saves a msg to the drafts folder is missing something important. The last parameter titled options allows for msg flags, per the imap rfc. If you don't set it to \Draft then the msg will get saved to the draft folder but it will not be editable. Assuming your using Outlook, you will have to click on actions and resend this msg. To avoid this set the Draft flag. imap_append($mbox,$authhost,$msg, "\\Draft");

« previous php.notes (#184767) next »