PDA

View Full Version : php imap_open problems


ugli-stix
03-15-2006, 11:18 AM
Hi all,

I've recently signed up for bluehost hosting and I'm having some problems getting the imap_open() function to work. The script I'm using runs perfectly fine on my local machine but the very same script fails on my bluehost domain.

I was just wondering if anyone knows if there is something blocking imap_open() connections. I've tried both SSL and non SSL connections and they both fail.

For info, I am trying to use the function like this:

imap_open("{imap.myserver.com:143/imap}INBOX","username","password");

Again, this usage works fine on my local machine, but not on the bluehost hosted site.

Any ideas?

Cheers,
John

Bryan
10-04-2006, 11:05 AM
John, Have you been able to get this working? I'm trying to use a WordPress plugin called postie that invokes imap_open and I'm receiving the same error message as you.. Can anyone help?

Pc_Dark
10-07-2006, 05:23 AM
Most likely, BlueHost blocks the outgoing connection. To allow this; You'd probably need a dedicated IP address ($30 extra a year). Still, it may be different. I kno I need a dedicated IP for function FSOCKOPEN.

anthony
02-18-2007, 04:20 PM
The problem is that on the Bluehost control panel, it gives the wrong settings for the pop3 server.

Instead of mail.example.com, just use example.com for the server, and it will work. I kept trying different options (ssl, imap, pop, etc.) until I just decided to ping the server, and found that it didn't exist. Then I just dropped the 'mail.' and it worked first time!

I'll send a note to the support team.