#45638 [Opn->Fbk]: Issues with imap_header

From: Date: Sun, 27 Jul 2008 15:27:49 +0000
Subject: #45638 [Opn->Fbk]: Issues with imap_header
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127319@lists.php.net to get a copy of this message
ID: 45638 Updated by: jani@php.net 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: ---------------- 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 (#127319) next »