note 123429 added to function.imap-append

From: Date: Thu, 13 Dec 2018 10:02:14 +0000
Subject: note 123429 added to function.imap-append
Groups: php.notes 
Request: Send a blank email to php-notes+get-209891@lists.php.net to get a copy of this message
From my testing today, if using PHPMailer to send to an Exchange based IMAP server with an attachment or embedded image greater than 7kb, you will need to change the line returns from unix format to windows format. I simply did a string replace on '\n' and replaced with '\r\n' to get this done. $content = str_replace("\n", "\r\n", $mail->getSentMIMEMessage()); $result = imap_append($imapStream, $path, $content); ---- Server IP: 208.43.231.9 Probable Submitter: 14.203.8.33 ---- Manual Page -- http://php.net/manual/en/function.imap-append.php Edit -- https://master.php.net/note/edit/123429 Del: integrated -- https://master.php.net/note/delete/123429/integrated Del: useless -- https://master.php.net/note/delete/123429/useless Del: bad code -- https://master.php.net/note/delete/123429/bad+code Del: spam -- https://master.php.net/note/delete/123429/spam Del: non-english -- https://master.php.net/note/delete/123429/non-english Del: in docs -- https://master.php.net/note/delete/123429/in+docs Del: other reasons-- https://master.php.net/note/delete/123429 Reject -- https://master.php.net/note/reject/123429 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209891) next »