note 50560 added to function.imap-fetchbody

From: Date: Thu, 03 Mar 2005 11:36:46 +0000
Subject: note 50560 added to function.imap-fetchbody
Groups: php.notes 
Request: Send a blank email to php-notes+get-85864@lists.php.net to get a copy of this message
If you insist on using imap_fetchbody() to retrieve a mail body that doesn't contain 'parts' [normally you'd use imap_body() ], then note that the header text is in part '0' and the body text in part '1'. So, imap_fetchbody($mbox,$msg,'0') will return the header and imap_fetchbody($mbox,$msg,'1') will return the body text. ---- Manual Page -- http://www.php.net/manual/en/function.imap-fetchbody.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50560 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50560&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50560&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50560&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50560&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50560&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50560&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85864) next »