Worked it out, there was a different function for it, for anyone else thats interested try
$header = imap_header($mbox, "1:{$MC->Nmsgs}");
$from = $header->from;
foreach ($from as $id => $object)
{
$fromname = $object->personal;
$fromaddress = $object->mailbox . "@" . $object->host;
}