There is one post in the IMAP category:

Test PHP Connection to IMAP Mailbox

IMAP | PHP
Simply enter your server location, account name, and password into this code and it will connect to your email account via IMAP (or display the reason why it couldn't connect). » View Post