I have made a small program in php that consults who is celebrating the day today and sends a congratulatory email to the people who throw the query, with PHPMailer, everything works perfect, now I want to automate it, and I want to create a cron job, but the executable does not work, I do not know what I'm missing, this is my .bat file:
C:\xampp\php\php.exe -f C:\xampp\htdocs\birthday\Views\Mail\mailer.php
It is assumed that when executing the file, make the query and send the mail, that happens when I load the php page with the browser, the routes are correct, but nothing happens when executing the .bat, I am in windows 10 that it's a team of the company.
I appreciate your help in advance.