Hi I am trying to use php imap functions
<?
session_start();
$inbox = imap_open("{mail.host.com/pop3:110}", $SESSION_NAME, $SESSION_PASS);
$headers = imap_body($inbox, $id);
$structure = imap_fetchstructure($inbox, $id);
echo htmlspecialchars($headers->fromaddress);
?>
does anyone know why from adress dosen't show anyone but when I do
echo $headers;
it shows:
From: someone<someone@somewhere.com> Date: Thu, 16 Jan 2003 09:04:51 -0600 To: all the people it's too
it shows up like in raw format. what am i missing. this code works fine when I am reading off an Imap server but when I switch to a pop server it quits working
--John