PHP Script to Parse POP3 Email Account

Can anyone provide me with a free script that I can use to connect to a POP3 email account, parse the email messages (I want to From, To, Date, and Message fields), then disconnect from the server.

I don't know a lot about PHP so I don't have any existing code.
LVL 13
jrramAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hujiCommented:
Check the following links:
http://www.thefreecountry.com/php/emailclients.shtml
http://www.hotscripts.com/Detailed/33611.html (download link is above there)
http://www.coolmon.com/new/

You may find more here:
http://www.hotscripts.com/search/index.html    (search for POP3, and from the dropdown choose PHP)


Reference:
http://ir.php.net/imap
hujiCommented:
Had time to do more searches for you:

http://www.hotscripts.com/Detailed/17449.html
http://www.hotscripts.com/Detailed/41582.html

And if you wanted to program a POP3 client yourself, you may find this useful:
http://www.hotscripts.com/Detailed/3980.html

Wish i can help
Huji
blue_hunterTechnical LeadCommented:
http://wiki.wonko.com/software/mailfeed/

Requirements
*  PHP 4.3.4 or higher
* PHP IMAP extension
* Mail_Mime PEAR package


for Mail_Mime PEAR package, you may get it from http://pear.php.net , this package can parse the contents retrieved from pop3 server


cheers




Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

blue_hunterTechnical LeadCommented:
http://mrpostman.sourceforge.net/scripts.html  <---- mrpostman Free and easy POP3 access to Yahoo! mail, Hotmail and more!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jrramAuthor Commented:
>> blue_hunter

Do those extensions and packages have to be installed on the server or are they just files that I reference.  I'm asking b/c my final product will resided on a shared server and I'm not sure if I have access to install components.

>> all

Is there any script that'll tell me all of the components that are already installed on a server so I know what I have to work with?
jrramAuthor Commented:
I've upped the points since I'm asking more questions

>> blue_hunter

with the mrpostman script, how do I use it with the mail.php?
hujiCommented:
I think what I posted for you in the above links, usually needs a simple installation of PHP, and nothing more. I'm not 100% sure. Why don't you test them?
blue_hunterTechnical LeadCommented:
they are files which you can save into your server

browse to the mail.php file at your server and then type in your pop3 mail account and password and then you may download your email from pop3 mail server, with the mail.php file.

For parsing the email with the Mail_Mime PEAR package, you may read the comments in the php class file, how you may pass in the variable into the class and get parsed.

before that, you have to make sure that imap packages is install with your php version.

as for the installation for imap, please refer the link below

http://my.php.net/manual/en/ref.imap.php


cheers

blue_hunterTechnical LeadCommented:
normally, Mail_Mime PEAR package is not install in the server, you may download it from pear.php.net
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.