0

I would like to set the Cron Job to allow Magento to send emails after new orders from customers. I tried running Magento Cron Job on Windows Task Scheduler with the script from wget.exe and an argument of http://mywebsite.com/cron.php, with a trigger that repeats every minute. However, I'm still not able to send emails. I have searched everywhere to find info about this and I'm not sure if I configured it the appropriate way and which one is supposed to be running cron.php or cron.sh? Thanks a lot for the help!

1

PHP has different configurations via web or via console: usually it is a lot limited via the webserver, in terms of memory allowed, execution time and so. So you should run cron.php via shell.

  1. Prepare a .bat file running php C:\path_to_magento\cron.php using absolute file path
  2. Run from command prompt: schtasks /create /sc minute /mo 5 /tn Magento\Cron /tr path_to_bat_file\filename.bat
  3. Click Magento on Task Scheduler library
  4. From Properties, click Change User or Group and choose a System username

Your cron will run each 5 minutes.

Only order emails are subject to cron: the other emails (ie. Customer Registration) are sent instantly. You can check if the smtp server is correctly set by registering.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.