Hi
I am using Mail:op3Client module to get messages from the server. Is there a way that I can get only new messages using this module or using any other modules???
$pop = new Mail:OP3Client( USER => "me",
PASSWORD => "mypassword",
HOST => "pop3.do.main" );
for ($i = 1; $i <= $pop->Count(); $i++) {
foreach ( $pop->HeadAndBody( $i ) ) {
print $_, "\n"; # and then save it somewhere
Delete($i);
}
print "\n";
that will retreive and delete all messages in the mailbox, next time you look there will be inly new emails in there Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.