Showing results for 
Search instead for 
Did you mean: 

Sales email not sending

Sales email not sending



I have 2 website and  Both are hosted on the same server..  So i copied the installation to the installation with the plesk copy option in my plesk admin.  Both sites are working fine except:  My installation was not sending the sales email when  I was testing the process.  So I found this solution:  

quick solution is:

Go to the following location:


Change Line 407

if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {


if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)) {

It will work.


It is working fine for the installation but it is not working for the installation.  even though it is the same site or a copy of same problem one solved with the solution i found and the other not working an not sending sales email.


Re: Sales email not sending

I would contact the host; did you check your host if you have Spam Filter On.

Re: Sales email not sending


In your second site you have to set proper cron job for sending queue email to make it working without any patch.



jignesh aakoliya


Re: Sales email not sending

How would i do that...  Thanks by the way

Re: Sales email not sending





I am assuming you have ssh access on your server.


Log in to the server via SSH. Run crontab -e command to add a cron task. If it asks you which editor to use just use nano. At this point you will see a text editor, where you can add or edit cron tasks. Go at the very bottom of the file and add:


*/5 * * * * /bin/sh /path/to/your/magento/site/root/


Change the path to your Magento document root path.

Save the changes and close the file. If you did everything correctly, crontab -l command will show you the newly created task.


Re: Sales email not sending

Do the small change in the file "Order.php" under the path <root>/app/code/core/Mage/Sales/Model/

From: $mailer->setQueue($emailQueue)->send();

To: $mailer->send();

Re: Sales email not sending

Yes - make sure cronjob is running and also make sure your server can send emails. This is also a great extension:

I'm a Magento Developer living in Melbourne, Australia with 4 x Magento certifications Smiley Happy