total email...

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Alidad
Forum Commoner
Posts: 29
Joined: Thu Mar 29, 2007 12:42 pm

total email...

Post by Alidad »

Hi, does anyone know where i can find how to create php total number of email or total number of unread email just like facebook.com showing total number of inbox.

I'm trying to find from google but for some reason i could not find it.

does any one know where i can find the sample of php code relate to total number of new email!

please help thanks.

AM
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: total email...

Post by Weirdan »

Alidad
Forum Commoner
Posts: 29
Joined: Thu Mar 29, 2007 12:42 pm

Re: total email...

Post by Alidad »

thank you so much for that link i have checked that and i see they are many list of imap's, do you know which of those list do i need to focuse on total number of unread email!

Alidad
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: total email...

Post by Weirdan »

Those ones that have *num* substring in their names, I guess.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: total email...

Post by onion2k »

Alidad wrote:thank you so much for that link i have checked that and i see they are many list of imap's, do you know which of those list do i need to focuse on total number of unread email!
Another example of one of PHP's failings - the fact there's a function for almost everything means you're assuming there's a function for what you want. There isn't. You'll need to write code that connects to an imap enabled mail server, logs in, checks the number of new messages, and returns that number to you. I recommend you read the documentation for imap_open() and imap_status(). There's a good example in the comments on http://uk2.php.net/manual/en/function.imap-status.php .

Of course, all this depends on your server having the IMAP extension installed, and your user's mailbox being IMAP enabled. If you don't meet either of those conditions you'll need to take a different approach.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: total email...

Post by Weirdan »

onion2k wrote:Of course, all this depends on your server having the IMAP extension installed, and your user's mailbox being IMAP enabled. If you don't meet either of those conditions you'll need to take a different approach.
Onion, imap extension has support for POP3 and NNTP too.
Post Reply