I made an online CRM for our company that checks the imap accounts using php imap library.
I open the connections using imap_open
it works perfectly but sometimes I get an error in the line where imap_open is.
I get [CLOSED] IMAP connection broken (server response)
I thought it was because I had some error where I did not closed the imap connection correctly, but after fixing everything I realized it was because the shared hosting from hostgator that I am using have a limit of 30 max imap connections per hour per IP.
the php code is on the same server that the imap server, is the same domain.
How can I solve this?? is strange that the hosting has a webmail (SmarterMail Enterprise 14.4) and the webmail don't get a conection error, I can open and close emails there all the time and don't get any errors.
Also is strange that while they have me blocked I can send emails using swiftmailer, maybe because sending an email doesn't have to do with opening an imap connection?