Imap_open,cant be start

I have got a mini php reading my gmails but the first line fails


How do I enable Imap support in this hosting ???,because in my localhost works very well

Thanks so much in advance for any help.

Why and how does the imap_open call fail? To my knowledge, there is nothing that prevents IMAP from working on our hosting.

If you’re using Gmail, can you please check if you’re using 2 Factor Authentication with an App Specific Password for authentication? Google is quite protective with account access from IMAP and SMTP if you’re not using 2FA, so if you’re not using that, then Google may be blocked the authentication attempt from our servers. On your own computer, Google recognizes that the login attempt is coming from the same connection. But our servers are on the other side of the world.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.