I'm writing a script that checks an IMAP email account. I can't seem to get the actual email address that I'm receiving an email from. According to this:
http://www.php.net/manual/en/function.imap-fetch-overview.php
should return who its from. But it just returns the name, not the actual email. Halpz?
http://www.php.net/manual/en/function.imap-fetch-overview.php
Code:
$overview = imap_fetch_overview($imap, $result);
$emailaddy = $overview[0]->from;