5

I got this error message in my exception file.

exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. ' in /lib/Zend/Mail/Transport/Sendmail.php:137
Stack trace:
#0 /lib/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /lib/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /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 /app/code/core/Mage/Cron/Model/Observer.php(325): call_user_func_array(Array, Array)
#5 /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 /app/code/core/Mage/Core/Model/App.php(1338): Mage_Cron_Model_Observer->dispatch(Object(Varien_Event_Observer))
#7 /app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Cron_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#8 /app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#9 /cron.php(76): Mage::dispatchEvent('default')
#10 {main}
2015年01月21日T13:00:01+00:00 ERR (3): 
exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. ' in /lib/Zend/Mail/Transport/Sendmail.php:137

Is this issue in Magento, or its Server issue?

Jayesh Patel
2,11818 silver badges22 bronze badges
asked Jan 24, 2015 at 11:22
4
  • Server issue for sure. Try using the default mail() function to test first. Commented Jan 24, 2015 at 12:58
  • please check email server is enable or not in server Commented Jan 24, 2015 at 13:44
  • It looks like you are getting this error as no mail server is configured on the server. To confirm look for postfix or sendmail. If this is a managed host they can install otherwise let me know and i can help you install based on operating system. Commented Jan 25, 2015 at 9:26
  • We solved it by setting a selinux var for mail server. Commented Apr 5, 2020 at 0:27

2 Answers 2

4

You can check following possibilities.

1) First check that your server is having email server configured or not.

2) If you have moved your Magento code and Database from some server to your localhost or development server.

Then you should check at following location in Magento admin

System > Configuration > Advanced > System > Mail Sending option

Host value should be localhost. (It may contains some IP address which might be configured on actual server from where you take the DB.)

screehshot

3) If you are getting this exception on your locahost on standalone PC, then you must configure an email server to send emails.

answered Jul 29, 2015 at 16:51
0

I had the same problem and resolved, restarting 'Postfix' service in my server.

answered Apr 5, 2019 at 12:32
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.