Magento New Order Mail Not Sending Admin Issue

 

Note : Check the mail after each steps Completed

Step1 : Email Model Template File

File Path: app/code/core/Mage/Core/Model/Email/Template.php 

Note : Move to local path app/code/local/Mage/Core/Model/Email/Template.php 

Changed the Below line In Your Template.php file

<?php
    if ($this->hasQueue()&& $this->getQueue() instanceof Mage_Core_Model_Email_Queue) /* line number 407 version 1.9.2.2 */
 
  to
 
    if (!($this->hasQueue()) && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)
 
  (or)
    if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue))
 ?>

Step2 : Sales Model Template File

File Path: app/code/core/Mage/Sales/Model/Order.php 

Note : Move to local path app/code/local/Mage/Sales/Model/Order.php 

Changed the Below line In Your Order.php file

<?php 
  $mailer->setQueue($emailQueue)->send(); 
 
  to
 
  $mailer->send(); 
?>

 

Step3: Check Cron (Scheduled Tasks)  in magento Admin Panel

Path:Configuration -> Advanced -> System -> Cron (Scheduled Tasks) – all the times are in minutes 

Check Below Options is Set Low Values Or Not

‘Generate Schedules’, ‘Every Schedule Ahead for’

 

Step4: Cron File Update

cron.php should be as like Magento Version

Add the Below code in your cron.php file after this line

<?php
$isShellDisabled = is_array($disabledFuncs) ? in_array('shell_exec', $disabledFuncs) : true;
/* line number 47 version 1.9.2.2  */
/* Added Code */ 
$isShellDisabled = true;
?>

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *