Re: imap_open() error. (Can't open mailbox)
| From: | Mathijs van Veluw | Date: | Mon, 09 Jun 2008 14:43:11 +0000 |
| Subject: | Re: imap_open() error. (Can't open mailbox) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275150@lists.php.net to get a copy of this message | ||
Edward Kay wrote:
The file is accessable, and they both run using the apache2 module etc.. Both have the same version PHP and same IMAP version. So i find it strange. For the output see my last post.-----Original Message----- From: Thijs Lensselink [mailto:dev@lenss.nl] Sent: 09 June 2008 13:43 To: php-general@lists.php.net Subject: Re: [PHP] imap_open() error. (Can't open mailbox) Quoting Mathijs van Veluw <mathijs.van.veluw@smscity.com>:Have you checked the permissions on the mail file? Are your dev and live boxes both running PHP in the same manner (Apache module vs CGI)? Can you open the same file with fopen? EdwardThijs Lensselink wrote:one raw-mail.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 justthe imap_open() only gets a file location. This file containts a raw-mail, so no need for ssl or proxy stuff etc..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.