#45638 [Opn]: Issues with imap_header

From: Date: Sun, 27 Jul 2008 14:55:56 +0000
Subject: #45638 [Opn]: Issues with imap_header
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127316@lists.php.net to get a copy of this message
ID: 45638 User updated by: arun dot magzion at gmail dot com Reported By: arun dot magzion at gmail dot com Status: Open Bug Type: IMAP related Operating System: Windows -PHP Version: 5.2.6 +PHP Version: 5.2.5 New Comment: Change in version 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: ---------------- info@magzion.com, info@grafotech.org Actual result: -------------- info@magzion.com ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45638&edit=1

« previous php.bugs (#127316) next »