Jump to content

Problem in reading email Id from imap->from field


macbase

Recommended Posts

Please help me in extracting only the email id from imap-> from field the code I am using is :

$overview = imap_fetch_overview($mbox,"1,1:$i",0);
if(is_array($overview))
{
    reset($overview);
    while( list($key,$val) = each($overview))
  {
  print $val->msgno ." -- ". $val->date ." -- ".$val->from ." -- ".$val->subject ." -- ". $val->size . "\n<BR>";

print imap_8bit($val->from);

}

While printing I am not getting the email is but name only if I incert the same in a database than I can see the name <email id > also.

Please help

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.