I can make my code work via sending emails whenever a client enters a specific page, the problem is that if the user/client reloads the page, a new email is sent, and that can lead to hundreds of mails being sent from my smtp server.
I am searching for a simple alternative which can only send a verification email every 5/10/15 minutes. Not when the user reloads the page.
Should I use javascript or a simple sleep on the function would work.
PD: Emails are being sent via $_SESSION
variables on php.