After installing the last patch i can't send order notifications. When i run the cron it tries to send the E-Mail but i get the following error.

exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. ' in /xxxxxxx/lib/Zend/Mail/Transport/Sendmail.php:156
Stack trace:
#0 /xxx/lib/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /xxx//lib/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /xxx/app/code/core/Mage/Core/Model/Email/Queue.php(241): Zend_Mail->send()
#3 [internal function]: Mage_Core_Model_Email_Queue->send(Object(Mage_Cron_Model_Schedule))
#4 /xxx/app/code/core/Mage/Cron/Model/Observer.php(326): call_user_func_array(Array, Array)
#5 /xxx/app/code/core/Mage/Cron/Model/Observer.php(72): Mage_Cron_Model_Observer->_processJob(Object(Mage_Cron_Model_Schedule), Object(Mage_Core_Model_Config_Element))
#6 /xxx/app/code/core/Mage/Core/Model/App.php(1358): Mage_Cron_Model_Observer->dispatch(Object(Varien_Event_Observer))
#7 /xxx/app/code/core/Mage/Core/Model/App.php(1337): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Cron_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#8 /xxx/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#9 /xxx/cron.php(78): Mage::dispatchEvent('default')
#10 {main}

I have looked around and i know that this is a problem when you don't set the path to sendmail in backend back that is all correct. The mail function is active, too.

If i send an Email not over the queue so directly an forgotten Password its working well. Only the Queue functionality is broken. I have debugged a lot. The function _sendMail() in SendMail.php is called i write a text to the log files before and after but only the mail function isn't called its very strange.

Anyone an idea or have the same problem with that patch? I have seen in the other thread that there are a lot of problem with the new Patch.


The interesting thing is that my emails are queued in the core_email_queue with processed_at NULL. When i run the cron the processed date is set but the E-Mail isn't send. In the same Moment i get the error on top.

I have that problem only on my managed server. On my local machine the Email is sent what is very strange and i have no problems and no exception.

  • magento_root/cron.su ? Do you not mean magento_root/cron.sh ?
    – user39241
    Commented Apr 29, 2016 at 14:15
  • Did you solve this problem? I'm facing the same issue. Commented Apr 26, 2019 at 19:14

2 Answers 2


Ok i think that is a provider and sendmail problem. As solution i use an SMTP extension to sind over my STMP server that is working.



I had the same problem few days ago while I upgraded from magento to, After searching from internet, I found that Order Notification process is changed and instead of directly sending email, Magento is making an email queue for email sending. Which will be processed by cron.php later on.

As you mentioned that your mail() function works perfectly, then please take a look at below database table for email queues:


If all your order notification mails are stuck there unsent, then you should setup a cron to send those emails.

If your cron is setup correctly, please verify that these 2 files have proper permissions:



  • 1
    Its not working ;) There are 4 Emails in the queue which aren't send but i can't send them with the cron. Its not working there is an Exception (the on top) and the Email can't be processed. Commented Jan 23, 2016 at 12:46
  • I run them over the command line without permission thy aren't working Commented Jan 23, 2016 at 12:48
  • Are you sure your mail() function exisits, and its enabled:? Commented Jan 23, 2016 at 12:53
  • Yes ;) have you read my question? ;) If its not enabled i coulnd't send other Emails from the system right? Commented Jan 23, 2016 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.