Comunitatea PHP Romania
 

 
imap_list

imap_list

(PHP 3>= 3.0.4, PHP 4 , PHP 5)

imap_list -- Read the list of mailboxes

Description

array imap_list ( resource imap_stream, string ref, string pattern)

Returns an array containing the names of the mailboxes. See imap_getmailboxes() for a description of ref and pattern.

Exemplu 1. imap_list() example

<?php
$mbox
= imap_open("{your.imap.host}", "username", "password", OP_HALFOPEN)
      or die(
"can't connect: " . imap_last_error());

$list = imap_list($mbox, "{your.imap.host}", "*");
if (
is_array($list)) {
  
reset($list);
  while (list(
$key, $val) = each($list)) {
    echo
imap_utf7_decode($val) . "<br />\n";
  }
} else {
  echo
"imap_list failed: " . imap_last_error() . "\n";
}

imap_close($mbox);
?>

See also: imap_getmailboxes().

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Loans | Secured Loans | Credit Cards | Mobile Phone | Xecuter 3 Mod Chip
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis