IMAP function library: imap_body

Source: Internet
Author: User
Keywords Imap_body imap function Library php Chinese function manual
Tags aliyun content function function library html http imap function library imap_body

Imap_body

Read the text of the letter.

Syntax: string imap_body (int imap_stream, int msg_number, int [flags]);

return value: String

Function type: http://www.aliyun.com/zixun/aggregation/32416.html "> network system

Content Description

This function can read the Nevin (body) portion of a letter. Parameter Imap_stream for IMAP 5643.html "> code. The parameter msg_number is the ordinal number of the letter. Parameter flags can be omitted, with the following values

Ft_uid: The letter number is UID.
Ft_peek: If there is no configuration \seen logo, do not set this logo.
Ft_internal: Return string using System format, do not deliberately turn to CRLF line end standard.

Usage examples

This example uses the IMAP protocol to read the first letter of Myid@localhost.

<?php
$mbox = Imap_open ("{Localhost:143}inbox", "myID", "MYPW");
$message = Imap_body ($mbox, 1);
Imap_close ($mbox);
Echo $message;
?>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.