' . iconv_mime_decode($overview->subject,0,"ISO-8859-1") . '
';
//Print out the sender's email address / from email address.
echo 'From: ' . imap_utf8($overview->from) . '
';
$fromaddr = $header->from[0]->mailbox . "@" . $header->from[0]->host;
echo 'Email: ' . $fromaddr . '
';
//Get the body of the email.
$message = imap_fetchbody($imapResource, $email, 1, FT_PEEK);
echo $message;
echo "