Stooney Posted August 5, 2008 Share Posted August 5, 2008 Not 100% on what section this belongs as I'm not sure if the best solution is php or not. I'm looking to so to say 'monitor' an email address. Every time a mail arrives in the inbox, I need a php script to run within (at most I hope) 30 seconds.. This script with do it's own thing and connect to pop server, pull email etc. My main hurdle right now is how to go about 'monitoring' the email address so that the messages are pulled off the server and processed asap. It's a set address that won't change. So the pop server and everything won't change dynamically. My first thought is to use a cron job, but I've read that setting cron jobs to run too often (under 2 mins in between) is not very good. Let me know if that's wrong or if you have a better solution. Quote Link to comment https://forums.phpfreaks.com/topic/118346-monitor-email-address/ Share on other sites More sharing options...
DeanWhitehouse Posted August 5, 2008 Share Posted August 5, 2008 i think you will need cron jobs to check for new mails every so often , then if there is a new mail run a certain script. Quote Link to comment https://forums.phpfreaks.com/topic/118346-monitor-email-address/#findComment-609040 Share on other sites More sharing options...
Stooney Posted August 5, 2008 Author Share Posted August 5, 2008 i think you will need cron jobs to check for new mails every so often , then if there is a new mail run a certain script. Is a cron job set to every 30 seconds (maybe even less) acceptable? Quote Link to comment https://forums.phpfreaks.com/topic/118346-monitor-email-address/#findComment-609043 Share on other sites More sharing options...
DeanWhitehouse Posted August 5, 2008 Share Posted August 5, 2008 Im not sure, only one way to find out Quote Link to comment https://forums.phpfreaks.com/topic/118346-monitor-email-address/#findComment-609046 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.