true ) ); // Authenticate to the IMAP server $imap->authenticate( "user", "password" ); // Select the Inbox mailbox $imap->selectMailbox( 'Inbox' ); ?>