cosmoray
05-21-2011, 04:39 AM
I am trying to grab the "fromaddress" of every email that comes into a certain inbox. Is there an easy way to display this value without writing a line of code for each message number?
$from = imap_header($mbox, 1);
echo "$from->fromaddress <br />";
$from = imap_header($mbox, 2);
echo "$from->fromaddress <br />";
Additionally, how do I turn a specific "fromaddress" into a variable?
$from = imap_header($mbox, 1);
echo "$from->fromaddress <br />";
$from = imap_header($mbox, 2);
echo "$from->fromaddress <br />";
Additionally, how do I turn a specific "fromaddress" into a variable?