Jump to content
ramiwahdan

auto email alert

Recommended Posts

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?

Share this post


Link to post
Share on other sites

cron to run your script at the designated times, mail() or some emailing library to send the emails.

Share this post


Link to post
Share on other sites

So that they can jump in their time machines and go back to login correctly?

Share this post


Link to post
Share on other sites
22 hours ago, Barand said:

So that they can jump in their time machines and go back to login correctly?

yes

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

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'.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.