ssl = true; $imap = new ezcMailImapTransport( "imap.example.com", null, $options ); // Authenticate to the IMAP server $imap->authenticate( "user", "password" ); // Select the Inbox mailbox $imap->selectMailbox( 'Inbox' ); ?>