View previous topic :: View next topic |
Author |
Message |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Thu Dec 08, 2005 12:49 pm Post subject: Check email with PHP |
|
|
Is it possible to check how many new emails I have on my pop3-mailserver with PHP? I don't need to read them, just check if I have any new emails.
If it is possible, can somebody please post a bit of code to give me an idea of how it works. |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
|
Back to top |
|
 |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Thu Dec 08, 2005 12:54 pm Post subject: |
|
|
I did, and I didn't find anything. That's why I'm asking. |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Thu Dec 08, 2005 12:56 pm Post subject: |
|
|
cmxflash wrote: |
I did, and I didn't find anything. That's why I'm asking. |
OK, fair enough. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Dec 08, 2005 6:19 pm Post subject: |
|
|
You could use IMAP if your Mail Server supports it, I know that hMailServer has
such a support but im not sure of the one your using. Hope this info helped. :-)
Sincerely, TRUSTpunk |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Dec 09, 2005 11:57 am Post subject: Re: Check email with PHP |
|
|
cmxflash,
Code: | $mbox = imap_open ("{pop3.isp.com:110/pop3/readonly}", "user_id", "password");
$status = imap_check($mbox);
echo "There are " . $status['Recent'] . " messages in the mailbox.";
imap_close($mbox); |
For more information about the IMAP/POP3 PHP commands, please browse http://www.php.net/imap . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|