If your server does not have imap, but you have an external system that has cron, you can write a page that verifies the email account and loads the data into MySQL, and then configure the script on a machine that has cron to wget on mysql page once every X minutes, where X is how often you want to load data.
Alternatively, if you know that emails will load quickly, you can set up a small table of fields in your database with a time stamp. Each time your PHP script is executed, it checks the timestamp, and if it is more than 5 minutes, it causes the email to load the script before loading the web page.
Ogre codes
source share