Page 1 of 1

pop3 help

Posted: Sat Nov 16, 2002 11:41 pm
by navid
hi all
i used pop3 email not imap mail or etc....
i used only pop3 mail.
i will know the mail is new message or old message.

Posted: Sun Nov 17, 2002 12:27 am
by MeOnTheW3
Please explain more clearly what you need help with.

Posted: Sun Nov 17, 2002 1:37 am
by navid
hi MeOnTheW3
How can I aware that an email has been open before?
This is easy in IMAP mail but I can not find the way for it on POP3 mail.

Posted: Sun Nov 17, 2002 9:54 am
by MeOnTheW3
Use the same IMAP functions in php as for POP3.

Code: Select all

<?php
//- IMAP
$mbox = imap_open ("{your.IMAP.host}INBOX", "username", "password")
$check = imap_check ($mbox);
$messages = $check->Nmsgs;
$recent = $check->recent;
?>

Code: Select all

<?php
//- POP3
$mbox = imap_open ("{your.POP3.host}INBOX", "username", "password")
$check = imap_check ($mbox);
$messages = $check->Nmsgs;
$recent = $check->recent;
?>

Posted: Mon Jun 23, 2003 1:35 am
by navid
I'm so sorry for late.
My project finished.
But i will re programing it now.

I tested this script before than , but the result not trou on my host.
I don't know do you know?