PHP script accessing gmail

I have a PHP script which connects to a gmail account and parses certain emails which was working fine until today it has started failing.

I am getting “Warning: imap_open(): Couldn’t open stream {}”. I had this issue on another host and it was because it was blocked. Does anyone know if this is now blocked on dreamhost?

I am on shared hosting.