Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

the recipient. The adl property is the source route, the chain of machines the mail will
travel, if the address is specified in that style.


As the name of the function suggests, this function implements addresses according to
RFC 822.


<?


$address = "Leon Atkinson [email protected],
vicky";
$info = imap_rfc822_parse_adrlist($address,
"clearink.com");
while(list($adr_info) = each($info))
{
print("$adr_info->personal ");
print("$adr_info->mailbox ");
print("$adr_info->host ");
print("$adr_info->adl
\n");
}
?>


string imap_rfc822_write_address(string mailbox, string host,
string personal_info)


The imap_rfc822_write_address returns an email address. As its name suggests,
this function implements addresses according to RFC 822.


<?


print(imap_rfc822_write_address("leon",
"clearink.com", "Leon
Atkinson"));
?>


imap_scan


You may use imap_scan as an alias for imap_scanmailbox.


array imap_scanmailbox(integer stream, string fragment)


The imap_scanmailbox function returns an array of mailbox names that contain the
given fragment.

Free download pdf