I have an interesting problem...
Currently, there is a web script that is automatically sending me an email each time one of my products is purchased online. These emails contain two things...the email of the purchaser, and a software key they use to unlock the software.
The user gets a copy of this email as well, so they get all of the necessary information. That part is just fine.
But what I am left with is a gigantic list of emails that contain the "welcome" email for each user. As you can imagine this is a customer support nightmare..each time somebody loses their key, we have to go and sift through the emails to find their particular email, send them their key, etc.
What I need is to create a PHP script that I will put on a cron...it will check this email address when ran (which is on the same domain server by the way), go through the emails in that email address inbox, pull out the email address of the user and the software key, and dump them into a database.
I have already coded the database part...all of that I can handle.
The only problem I am having is that I don't know how to access a local mail inbox with my PHP script. Once I get in and loop through the emails, I can take care of the rest. I just don't know how to access the mail spool with my PHP script.
Is there a simple way to do this? A library perhaps?
Thank you all for any help you can provide!