ID: 45638
Updated by: [EMAIL PROTECTED]
Reported By: arun dot magzion at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: IMAP related
Operating System: Windows
PHP Version: 5.2.5
New Comment:
This is not enough information to even see whether this is expected or
really a bug. I suggest you try this first:
$ccbcc = imap_header($mbox,$msgid);
var_dump($ccbcc);
Previous Comments:
------------------------------------------------------------------------
[2008-07-27 14:53:33] arun dot magzion at gmail dot com
Description:
------------
THe imap_header funtion return the multiple email address for cc, bcc
but not with the to email address.
Reproduce code:
---------------
$ccbcc = imap_header($mbox,$msgid);
if(isset($ccbcc->to)){
$to = "";
foreach($ccbcc->to as $mto) {
if(isset($mto->personal)) {
$to = $to. $mto->personal;
}
if(isset($mto->mailbox) && isset($mto->host)) {
$to = $to."< ".$mto->mailbox."@".$mto->host." >". ",";
}
}
$to = substr($to, 0,strlen($to)-1);
}
Expected result:
----------------
[EMAIL PROTECTED], [EMAIL PROTECTED]
Actual result:
--------------
[EMAIL PROTECTED]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45638&edit=1