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.
| 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 |
|