I've never had to do this before, but you can get PHP to check a POP3 mailbox for new messages.
// To connect to a POP3 server on port 110 on the local server, use:
$mbox = imap_open ("{localhost:110/pop3}INBOX", "user_id", "password");
Some other functions to read up on are:
imap_check - Checks for new messages
imap_fetchbody - get the contents of the message body
From those two functions, you should be able to do what you need. They are documented in the PHP manual.