PDA

View Full Version : how to access pop email via imap_open()?


aristoteles
7-27-06, 06:26 PM
Hi there,

I'm trying to access a pop account via imap_open(), but I can't figure out the correct host string. I should be something like:

$mailbox = imap_open ("{pop.powweb.com:110/notls}"."INBOX", "USERNAME", "PASSWORD") or die (imap_last_error());

I tried with mail.mydomain instead of pop.powweb.com, changed to port 143 (imap server), put the flag notsl, nothing works. Error shows refused or broken connection.

Maybe you (expert) guys can help?

Thanks

mitchind
7-27-06, 09:14 PM
I think there was a sticky in the PHP (legacy) forum on this very topic.

See if the solution there fits your problem.

aristoteles
7-27-06, 10:06 PM
I already checked all relevant threads before posting and tried the suggested settings, but none of them worked for me.

mitchind
7-27-06, 10:45 PM
You're correct - I just checked old posts with admins and PHP/IMAP is NOT supported in new platform. Only from regular email.
I'll add to ReadMe Sticky at top.

You can confirm with support - I am not an authorized employee.

aristoteles
8-1-06, 02:02 PM
ok, support solved the problem. PHP / IMAP IS supported on the new platform, and the correct string is:

$mailbox = imap_open "{pop.powweb.com:143/notls"."}"."INBOX", "USERNAME", "PASSWORD") or die (imap_last_error());

mitchind
8-1-06, 02:31 PM
Nice of them to let me know.

I'll add this to the sticky. Thanks for the followup to the thread!