Email POP test

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gloveny2
Forum Newbie
Posts: 9
Joined: Wed Mar 31, 2004 10:00 am

Email POP test

Post by gloveny2 »

Hi everyone. Im new to PHP and havent and cant find what I'm looking for.

I've been asked to make a simple Email function for clients and our old version of the site uses ASP to do whats know as a POP test. This means it attempts to download Emails from a dummy account , as if it were in outlook and send/receive was pressed. If succesfull, this means its a trusted then it can send an email. Does anyone know how I could do this with PHP. For example I can send mail with this function ->
mail($to, $subject, $message ,$from);

Is there a function to read email???
All replies appreciated.
Thanks
Graham
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post by TheBentinel.com »

There's an OpenSource (I think) project called SquirrelMail that's PHP based. You could peruse the source of that and see how they're doing a mail check.
gloveny2
Forum Newbie
Posts: 9
Joined: Wed Mar 31, 2004 10:00 am

Post by gloveny2 »

Hi thanks but I found this, well my boss did.

http://www.thewebmasters.net/php/POP3.phtml

Download the latest verion of the class from the very top of the page called POP3-1_0.tar.gz. The code in the SYNOPSIS section on the page itself can do all the work I need.

cheers :)
Post Reply