magento - Mail not sent automatically with cron -
i facing problem custom email. email not sent automatically according schedule.
cron working fine. have debug code using mage::log()
. getting each log before sendtransactional function after log not working.
however working fine aoe_schedule when execute cron forcefully.
but not working automatically..
so code correct. problem automatic cron execution.
you can create crontab file
in server cmd
crontab -e
in open window
shell=/bin/bash path=/sbin:/bin:/usr/sbin:/usr/bin mailto=your email error message
*/5 * * * * full path site cron.sh
file(example: /home/username/www/public_html/cron.sh
)
this execute cron.sh
every 5 minutes , aoe_sheduler dosen't write warning heartbeat
Comments
Post a Comment