IMAP_BODY(3) 1 IMAP_BODY(3)
imap_body - Read the message body
SYNOPSIS
string imap_body (resource $imap_stream, int $msg_number, [int $options])
DESCRIPTION
imap_body(3) returns the body of the message, numbered $msg_number in the current mailbox.
imap_body(3) will only return a verbatim copy of the message body. To extract single parts of a multipart MIME-encoded message you have to
use imap_fetchstructure(3) to analyze its structure and imap_fetchbody(3) to extract a copy of a single body component.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $msg_number
- The message number
o $options
- The optional $options are a bit mask with one or more of the following:
o FT_UID - The $msg_number is a UID
o FT_PEEK - Do not set the Seen flag if not already set
o FT_INTERNAL - The return string is in internal format, will not canonicalize to CRLF.
RETURN VALUES
Returns the body of the specified message, as a string.
PHP Documentation Group IMAP_BODY(3)