<HTML ><HEAD ><TITLE >imap_fetchbody</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="IMAP, POP3 and NNTP functions" HREF="ref.imap.html"><LINK REL="PREVIOUS" TITLE="imap_fetch_overview" HREF="function.imap-fetch-overview.html"><LINK REL="NEXT" TITLE="imap_fetchheader" HREF="function.imap-fetchheader.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.imap-fetch-overview.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.imap-fetchheader.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.imap-fetchbody" ></A >imap_fetchbody</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN37898" ></A ><P > (PHP 3, PHP 4 )</P >imap_fetchbody -- Fetch a particular section of the body of the message </DIV ><DIV CLASS="refsect1" ><A NAME="AEN37901" ></A ><H2 >Description</H2 >string <B CLASS="methodname" >imap_fetchbody</B > ( resource imap_stream, int msg_number, string part_number [, flags options])<BR ></BR ><P > This function causes a fetch of a particular section of the body of the specified messages as a text string and returns that text string. The section specification is a string of integers delimited by period which index into a body part list as per the IMAP4 specification. Body parts are not decoded by this function. </P ><P > The options for <B CLASS="function" >imap_fetchbody()</B > is a bitmask with one or more of the following: <P ></P ><UL ><LI ><P > FT_UID - The <TT CLASS="parameter" ><I >msg_number</I ></TT > is a UID </P ></LI ><LI ><P > FT_PEEK - Do not set the \Seen flag if not already set </P ></LI ><LI ><P > FT_INTERNAL - The return string is in "internal" format, without any attempt to canonicalize CRLF. </P ></LI ></UL > </P ><P > See also: <A HREF="function.imap-fetchstructure.html" ><B CLASS="function" >imap_fetchstructure()</B ></A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.imap-fetch-overview.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.imap-fetchheader.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >imap_fetch_overview</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.imap.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >imap_fetchheader</TD ></TR ></TABLE ></DIV ></BODY ></HTML >