ramiwahdan Posted April 8, 2020 Share Posted April 8, 2020 Hi, In my attendance system i want to add email alert using php. I want the system to check the records in my db and send email to everyone that forgot to clock-in after 7:30AM from Sunday to Thursday. What i need to use for this, ideas? Quote Link to comment https://forums.phpfreaks.com/topic/310503-auto-email-alert/ Share on other sites More sharing options...
requinix Posted April 8, 2020 Share Posted April 8, 2020 cron to run your script at the designated times, mail() or some emailing library to send the emails. Quote Link to comment https://forums.phpfreaks.com/topic/310503-auto-email-alert/#findComment-1576563 Share on other sites More sharing options...
Barand Posted April 8, 2020 Share Posted April 8, 2020 So that they can jump in their time machines and go back to login correctly? Quote Link to comment https://forums.phpfreaks.com/topic/310503-auto-email-alert/#findComment-1576570 Share on other sites More sharing options...
ramiwahdan Posted April 9, 2020 Author Share Posted April 9, 2020 22 hours ago, Barand said: So that they can jump in their time machines and go back to login correctly? yes Quote Link to comment https://forums.phpfreaks.com/topic/310503-auto-email-alert/#findComment-1576617 Share on other sites More sharing options...
ramiwahdan Posted April 12, 2020 Author Share Posted April 12, 2020 On 4/10/2020 at 12:05 AM, ramiwahdan said: On 4/9/2020 at 1:48 AM, Barand said: So that they can jump in their time machines and go back to login correctly? is there a way to do this without a cron job or is there cron jobs running xampp server? Quote Link to comment https://forums.phpfreaks.com/topic/310503-auto-email-alert/#findComment-1576740 Share on other sites More sharing options...
ginerjm Posted April 12, 2020 Share Posted April 12, 2020 I am not educated in this knowledge, but if Xampp is running on Windows, Google say that you can setup a BAT job and schedule it. Do a google search for 'cron on xampp'. Quote Link to comment https://forums.phpfreaks.com/topic/310503-auto-email-alert/#findComment-1576741 Share on other sites More sharing options...
requinix Posted April 12, 2020 Share Posted April 12, 2020 3 hours ago, ramiwahdan said: is there a way to do this without a cron job or is there cron jobs running xampp server? Not unless you're a high-traffic site. You can't run PHP code unless something triggers it, and relying on people hitting your website isn't safe. If you need to run some code at a particular time then cron, or scheduled tasks on Windows, are the correct answer. Quote Link to comment https://forums.phpfreaks.com/topic/310503-auto-email-alert/#findComment-1576745 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.