note 72951 added to function.imap-fetchbody
| From: | web at i-ps dot net | Date: | Mon, 05 Feb 2007 18:35:07 +0000 |
| Subject: | note 72951 added to function.imap-fetchbody | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122889@lists.php.net to get a copy of this message | ||
I had an issue with the content that was returned by imap_fetchbody - either the function itself, or
the mail-server, was inserting "=\r\n" at points into the text body returned. This may
depend upon the content type (i.e. plain text / csv, as opposed to something like a Word document),
but you may need to do something like:
$body = preg_replace("/=(\r?)\n/", '', imap_fetchbody($mailbox, $message,
$part));
----
Server IP: 85.116.0.130
Probable Submitter: 84.93.218.7
----
Manual Page -- http://www.php.net/manual/en/function.imap-fetchbody.php
Edit -- https://master.php.net/note/edit/72951
Del: integrated -- https://master.php.net/note/delete/72951/integrated
Del: useless -- https://master.php.net/note/delete/72951/useless
Del: bad code -- https://master.php.net/note/delete/72951/bad+code
Del: spam -- https://master.php.net/note/delete/72951/spam
Del: non-english -- https://master.php.net/note/delete/72951/non-english
Del: in docs -- https://master.php.net/note/delete/72951/in+docs
Del: other reasons-- https://master.php.net/note/delete/72951
Reject -- https://master.php.net/note/reject/72951
Search -- https://master.php.net/manage/user-notes.php