I have a problem with emails not sending,
I had a problem with cron yesterday 'No heartbeat task detected' and solved it by amending the cron.php file by adding
$isShellDisabled = true;
after the line
$isShellDisabled = (stripos(PHP_OS, 'win') === false) ? $isShellDisabled : true;
This solved my problem with the cron heartbeat error, but my site still isn't sending emails
I've added two Cron Jobs in CPanel as directed to
test -e /home/dan/public_html/maintenance.flag && /bin/bash /home/dan/public_html/scheduler_cron.sh --mode always
and
test -e /home/dan/public_html/maintenance.flag && /bin/bash /home/dan/public_html/scheduler_cron.sh --mode default
emails where still not sending
I've tried amending /app/code/core/Mage/Core/Model/Email/Template.php
from
if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {
to
if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)) {
then to
if (!($this->hasQueue()) && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {
and then to
if (false){
nothing has worked
I would appreciate some help
I'm not sending them from mandrill or anything like that, they are just being sent straight from magento.
how would i know if they're just being blocked?
What mail service did you configure on your server? Generally you can go have a look at /var/log/maillog to see if there are any issues sending from your server.