Page 1 of 1

imap_open function shows Can't open mailbox..no such mailbox

Posted: Mon Jan 19, 2009 1:16 am
by Lakshmi Saripella
We've a requirement to implement php IMAP functions. I've just started exploring those.

I get to see 'Can't open mailbox .... no such mailbox' message when tried the following way.

$conn = imap_open("\{$server:143/imap}INBOX",$user,$pass);

$server has value of our 'domain name'
user and password have details of mailbox login credentials.

Its driving me mad. pls. help at the earliest.

Re: imap_open function shows Can't open mailbox..no such mailbox

Posted: Mon Jan 19, 2009 2:19 am
by alex.barylski
Drop the leading slash in the connection string, maybe?

Re: imap_open function shows Can't open mailbox..no such mailbox

Posted: Mon Jan 19, 2009 3:26 am
by Lakshmi Saripella
Thanks! Dropping leading slash helped. It works now.