|
Posted by Ron Eggler @ work on 06/08/05 16:04
Hi,
I'm trying to build a php-spam-filter which conects to any pop-acoount and
deletes the mails directly on the pop-server. so I won't have to call them
first. I thought I first should check, if the domain from the sender really
exists.
I got some problems to read the Sender-Address. I tried this:
[Code]
$mbox=handle to pop account
$header = imap_headerinfo ($mbox, $i);
$overview = imap_fetch_overview($mbox, "2,4:6");
echo "From: ".$header->senderaddress."<br>\n";
echo "To: ".$header->toaddress."<br>\n";
echo "Subject: ".$header->fetchsubject."<br>\n";
echo "Date: ".$header->udate."<br>\n";
echo "Reply to: ".$header->reply_toaddress."<br>\n";
echo "FromAddress: ".$overview->from."<br>\n";
[/Code]
In "$header->senderaddress" and in "$overview->from" there's no
"real-sender-address' in it. most, there are names without any
e-mail-address.
how to get the address?
Thanks!
Navigation:
[Reply to this message]
|