php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27567 imap_open fails, other mail clients work fine
Submitted: 2004-03-11 09:00 UTC Modified: 2004-03-11 09:16 UTC
From: a dot bleys at fbk dot eur dot nl Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4CVS-2004-03-11 (stable) OS: Win2K
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: a dot bleys at fbk dot eur dot nl
New email:
PHP Version: OS:

 

 [2004-03-11 09:00 UTC] a dot bleys at fbk dot eur dot nl
Description:
------------
If I try to connect to the imap server, IMAP.fbk.eur.nl, it fails. It returns: "invalid remote specification", independent of:
* correct username/password
* mailbox name (changing IMAP.fbk.eur.nl to http://www.php.net/ gives the same error)
* Using port numbers (same result without port as with 143 or 993)
* adding INBOX after the server name

Standard mail clients like netscape, mozilla or novell netmail work fine, so the server seems to be ok.
Webserver is apache 1.3.

According to the manual (http://www.php.net/manual/en/function.imap-open.php) my syntax seems to be ok.

Bug report #27482 suggests that it might be a script/setup problem, but if so: what are the correct settings?


Reproduce code:
---------------
$mbox = imap_open("{IMAP.fbk.eur.nl/imap/novalidate-cert}", $strUsername, $strPassword);

if($mbox)
{
  printf("Connected to IMAP server<br><br>\n");
  // Do something....
  imap_close($mbox);
}
else
{
  printf("Could not connect to imap server,<br>Error = %s<br>\n", imap_last_error());
}

Expected result:
----------------
Connected to IMAP server




Actual result:
--------------
Warning: imap_open(): Couldn't open stream {IMAP.fbk.eur.nl/imap/novalidate-cert} in c:\program files\apache group\apache\htdocs\isis\webmail.php on line 29 Could not connect to imap server,
Error = Can't open mailbox {IMAP.fbk.eur.nl/imap/novalidate-cert}: invalid remote specification
Notice: (null)(): Can't open mailbox {IMAP.fbk.eur.nl/imap/novalidate-cert}: invalid remote specification (errflg=2) in Unknown on line 0Unknown on line 0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-11 09:16 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is not support forum. (and this is NOT bug)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 17:01:31 2024 UTC