• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

Check pop3 account with PHP and echo no mail found or you have mail

Can anyone tell me if PHP can check a POP3 email account for mail, and than echo back yes or no ? I just need it to check one mail box, if it has mail the user knows to open outlook and get it. Its just a reminder.
0
GD_GRAY
Asked:
GD_GRAY
  • 2
  • 2
2 Solutions
 
Frosty555Commented:
Yes it can, but use the IMAP libraries. It should still work fine for you though, you're just looking for messages with their unread flag set.

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_27664775.html

Check the comments on that page too, some good material there.
0
 
GD_GRAYAuthor Commented:
LoL, That link just opens this same form, my question. ??
0
 
rinfoCommented:
phpclassses has some classes that you can use to manage your pop3 mail account .
some of the classes in order of popularity and rating are
http://www.phpclasses.org/package/4014-PHP-Retrieve-and-delete-messages-from-a-POP3-mailbox.html
http://www.phpclasses.org/package/2-PHP-Access-to-e-mail-mailboxes-using-the-POP3-protocol.html
while there you can search for pop3 and get an extensive list so you can pick a class suitable for you.
0
 
Frosty555Commented:
Whoops... sorry gd_gray, must have lost track of my clipboard there. Good thing it wasn't anything embarassing ;)

I meant to link to the PHP documentation page on IMAP functions:

http://php.net/manual/en/book.imap.php
0
 
GD_GRAYAuthor Commented:
I am having a hard time understanding most of the links, and what I have I cant seem to get to work. LoL... Thank you two for the links.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now