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.
pop3 help
Moderator: General Moderators
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;
?>