Set the mailer.php to run every x minutes with crontab. Crontab string: "*/number_of_minutes * * * * php /path/to/n4checker/mailer.php"