Re: imap_open() error. (Can't open mailbox)

From: Date: Mon, 09 Jun 2008 12:43:01 +0000
Subject: Re: imap_open() error. (Can't open mailbox)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-275134@lists.php.net to get a copy of this message
Quoting Mathijs van Veluw <mathijs.van.veluw@smscity.com>:
Thijs Lensselink wrote:
Quoting Mathijs van Veluw <mathijs.van.veluw@smscity.com>:
Hello there, i use imap to read incoming mail from the the SMTP server. On the live server everythings works as it should. I can use imap_open('/path/to/file', '', ''), to read just one raw-mail. On my test env i can't get this to work. I get the error message: "Can't open mailbox". While on the live server it works and i get the correct resource "resource(42) of type (imap)". I realy don't know what the problem is. Can someone help me with this? Thanks in advance. Mathijs.
I didn't work with IMAP much. So one suggestion could be to check if your dev box is behind a proxy server. If you're using SSL check if it's enabled on your dev box.
the imap_open() only gets a file location. This file containts a raw-mail, so no need for ssl or proxy stuff etc..
It doesn't give a file location. it creates a resource. This resource you can use to retrieve the data. SSL is no option like you said. I would at least check the proxy. I'm behind a proxy here also. And for remote communication i use a proxy class. Maybe somebody else on the list can point you in the right direction.

« previous php.general (#275134) next »