You are here: get sender-address « PHP Language « IT news, forums, messages
get sender-address

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация