PLease help im trying to get mails from linux mail server

PLease help im trying to get mails from linux mail server using php, how do i go about?

Moved to PHP Forum

Try using a class such as this: http://www.phpclasses.org/package/2-PHP-Access-to-e-mail-mailboxes-using-the-POP3-protocol.html

thank you guys,it did work and how can i get each mail content separately?for instance if i want a message body only ,form mail address…

and is there a documentation that i can go through for this pop class?
thank you very much.