pop3 help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
navid
Forum Commoner
Posts: 68
Joined: Tue Sep 24, 2002 3:14 am
Location: iran

pop3 help

Post 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.
MeOnTheW3
Forum Commoner
Posts: 48
Joined: Wed Nov 13, 2002 3:28 pm
Location: Calgary, AB

Post by MeOnTheW3 »

Please explain more clearly what you need help with.
navid
Forum Commoner
Posts: 68
Joined: Tue Sep 24, 2002 3:14 am
Location: iran

Post 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.
MeOnTheW3
Forum Commoner
Posts: 48
Joined: Wed Nov 13, 2002 3:28 pm
Location: Calgary, AB

Post 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;
?>
navid
Forum Commoner
Posts: 68
Joined: Tue Sep 24, 2002 3:14 am
Location: iran

Post 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?
Post Reply