Bug #65974 [Fbk->NoF]: Unable to fetch emails from exchange server using imap
| From: | php-bugs at lists dot php dot net | Date: | Sun, 25 Oct 2020 04:22:08 +0000 |
| Subject: | Bug #65974 [Fbk->NoF]: Unable to fetch emails from exchange server using imap | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-229907@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65974&edit=1
ID: 65974
Updated by: php-bugs@lists.php.net
Reported by: anchal56 dot er at gmail dot com
Summary: Unable to fetch emails from exchange server using imap
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: IMAP related
Operating System: LINUX
PHP Version: Irrelevant
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2020-10-16 14:00:02] cmb@php.net
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2020-10-16 13:58:21] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]? If so, please update the PHP Version field (the
version is certainly not irrelevant).
------------------------------------------------------------------------
[2013-10-27 08:18:43] anchal56 dot er at gmail dot com
Description:
------------
I am using PHP IMAP tools to fetch the emails from various email server.
My code works for various email server like gmail, ymail etc, but when it comes to exchange server,
I am able to make a hit on the exchange server but can't be able to fetch the mails from
exchange server.
I used various php header like unseen/ALL etc but still i am not able to fetch the emails, instead I
get only true as a response.
Test script:
---------------
if(strcmp($m_serv,'w2010ExchangeServer')==0 OR
strcmp($m_serv,'w2003ExchangeServer')==0)
{
// die('Could not write to file in exchange');
$str = "{".$m_serv.":".$m_port."/imap/ssl}".$m_folder;
$m_mail = imap_open($str , $m_username, $m_password, NULL, 1,
array('DISABLE_AUTHENTICATOR' => 'GSSAPI')) or die("ERROR : " .
imap_last_error()); // pop is 993
}
else
{
// die('Could not write to file');
$m_mail = imap_open ($str, $m_username, $m_password) or die("ERROR : " .
imap_last_error());
}
$m_gunixtp = array(2592000, 1209600, 604800, 259200, 86400, 21600, 3600);
//$m_gdmy = date('d-M-Y', time() - $m_gunixtp[$m_t]);
//$m_gdmy = date ( "d M Y", strToTime ( "-7 days" ) );
//$m_search=imap_search ($m_mail, 'UNSEEN SINCE ' . $m_gdmy . '');
//$m_search=imap_search ($m_mail, 'UNSEEN SINCE '.$m_gdmy.'');
//$m_search=imap_search ($m_mail, 'UNSEEN');
//$mc="UNSEEN TO ".$m_username;
$mc="UNSEEN";
$myFile = 'test.txt';
$fh = fopen($myFile, 'a+') or die("t open file");
//$stringData = $m_search;
fwrite($fh, $mc);
fclose($fh);
$m_search=imap_search ($m_mail, $mc);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65974&edit=1