CSS: Providing seven essential vitamins and minerals since 1996.
Have a steaming hot, delicious slice of Standards.

Mail_IMAP::Mail_IMAP()

bool Mail_IMAP([string $connection[, bool $get_info = TRUE]])

The class constructor accepts a URI abstraction, or the IMAP resource stream created by imap_open. See the Mail_IMAP::connect method for an explaination of the syntax allowed in the URI abstraction.

An instance of PEAR_ErrorStack is instantiated in the constructor and stored in the $error property.

If the optional $get_info argument is TRUE, Mail_IMAP::connect automatically calls on Mail_IMAP::getMailboxInfo, whereas extra information about the mailbox is added to the $mailboxInfo property.

Method summary:

param string $connection (optional) URI | imap resource.
param bool $get_info (optional) see above.
return void
throws ErrorStack: Invalid imap resource stream passed to constructor. Check the imap stream passed to the constructor in the the $connection argument.
access public
see imap_open
Mail_IMAP::connect

Leave a Comment

PHP Powered XHTML 1.0 CSS
Copyright © 1998-2010 Richard York, All Rights Reserved.