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

Posted on 2012-04-05
Medium Priority
Last Modified: 2012-04-12
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.
Question by:GD_GRAY
  • 2
  • 2
LVL 31

Expert Comment

ID: 37814700
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.


Check the comments on that page too, some good material there.

Author Comment

ID: 37814722
LoL, That link just opens this same form, my question. ??

Assisted Solution

rinfo earned 750 total points
ID: 37815722
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
while there you can search for pop3 and get an extensive list so you can pick a class suitable for you.
LVL 31

Accepted Solution

Frosty555 earned 750 total points
ID: 37820423
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:


Author Closing Comment

ID: 37838245
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.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
I recently worked on a Wordpress site that utilized the popular ContactForm7 (https://contactform7.com/) plug-in that only sends an email and does not save data. The client wanted the data saved to a custom CRM database. This is my solution.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question