Check email with PHP

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Thu Dec 08, 2005 12:49 pm    Post subject: Check email with PHP Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Dec 08, 2005 12:50 pm    Post subject: Reply with quote

As you would say: UTFG www.google.com
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Thu Dec 08, 2005 12:54 pm    Post subject: Reply with quote

The Inquisitor wrote:
As you would say: UTFG www.google.com


I did, and I didn't find anything. That's why I'm asking.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Dec 08, 2005 12:56 pm    Post subject: Reply with quote

cmxflash wrote:
The Inquisitor wrote:
As you would say: UTFG www.google.com


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 View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Dec 08, 2005 6:19 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Dec 09, 2005 11:57 am    Post subject: Re: Check email with PHP Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group