Mail not sent automatically with cron

638 views Asked by At

I am facing a problem with custom email. Email does not sent automatically according to its schedule.

Cron is working fine. I have debug code using Mage::log(). I am getting each log before sendTransactional function after that log is not working.

However its working fine with Aoe_schedule when I execute cron forcefully.

But Its not working automatically..

So the code is correct. Problem is with automatic cron execution.

1

There are 1 answers

0
Eugene Zubkov On

You can create a crontab file

in server cmd

crontab -e

in open window

SHELL=/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=your email for error message

*/5 * * * * full path to your site cron.sh file(example: /home/username/www/public_html/cron.sh)

this is will execute your cron.sh every 5 minutes and Aoe_Sheduler dosen't write a warning about heartbeat