imap_open mailbox with php

Avatar
  • Answered
I have tried almost any possible combination of parameters using pop3 and imap and i always get an error and the mailbox not opens :
Too many login failures
Can not authenticate to IMAP server: Login failed.
Login failed.
Certificate failure for localhost: self signed certificate: /CN=vps9942.inmotionhosting.com/[email protected]
What can be happening?
Avatar
anonymous
Hello,

Thank you for your question on IMAP. Can you show us what code you are using to try and connect? Has it always been failing to login or is this a new issue that rose up recently? Also can you try running something similar to this below:

$mbox = imap_open('{mail.domain.com:143/novalidate-cert}INBOX', '[email protected]', 'userpass');

Best Regards,
TJ Edens