note 80951 added to function.imap-append

From: Date: Fri, 08 Feb 2008 07:06:28 +0000
Subject: note 80951 added to function.imap-append
Groups: php.notes 
Request: Send a blank email to php-notes+get-135891@lists.php.net to get a copy of this message
I spend most of today refining the example to make it work properly when saving to the Inbox.Sent folder. The append command now looks like: $return = imap_append($stream,$mailbox_addr , "From: $fromReply\r\n" . "To: $to\r\n" . "Subject: $subject\r\n" . "Date: $now \r\n" . "X-Mailer: Cmail_v2.0 \r\n" . "X-Originating-IP: $ip_addr \r\n" . "MIME-Version: 1 \r\n" . "Content-Type: text/html;\r\n\tcharset=\"ISO-8859-1\"\r\n" . "Content-Transfer-Encoding: 8bit \r\n" . "\r\n\r\n" . "$wk_msg\r\n" ); This inserts the current date into the email and lets it support html content. The one thing that I haven't got working yet is including attachments. I presumably have to make the boundaries and attachment content part of the message body. Chris ---- Server IP: 216.235.15.211 Probable Submitter: 99.247.21.220 ---- Manual Page -- http://www.php.net/manual/en/function.imap-append.php Edit -- https://master.php.net/note/edit/80951 Del: integrated -- https://master.php.net/note/delete/80951/integrated Del: useless -- https://master.php.net/note/delete/80951/useless Del: bad code -- https://master.php.net/note/delete/80951/bad+code Del: spam -- https://master.php.net/note/delete/80951/spam Del: non-english -- https://master.php.net/note/delete/80951/non-english Del: in docs -- https://master.php.net/note/delete/80951/in+docs Del: other reasons-- https://master.php.net/note/delete/80951 Reject -- https://master.php.net/note/reject/80951 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135891) next »