XF 1.5 Server Error with Emails


The following error occurs when my website tries to send an email. It doesn't matter what the email is, each email gets the same error. I've tried messing with the email settings and I'm not sure what the problem is. I'm thinking about having an SMTP Relay service handle emails, but I'm not sure if that will resolve this issue or not. There's probably something I've overlooked or missed entirely, so I'm posting here in hopes that someone can point me in the right direction. I'm currently using 1.5.0, however I'm planning to update to 1.5.2 in the coming days. If updating alone will resolve the issue, let me know. Thanks for your help, in advance! :)

Zend_Mail_Transport_Exception: Email to <email> failed: Unable to send mail. - library/Zend/Mail/Transport/Sendmail.php:137

Stack Trace:
/home/rocket0191/public_html/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /home/rocket0191/public_html/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /home/rocket0191/public_html/library/XenForo/Model/MailQueue.php(79): Zend_Mail->send(Object(Zend_Mail_Transport_Sendmail))
#3 /home/rocket0191/public_html/library/XenForo/Deferred/MailQueue.php(10): XenForo_Model_MailQueue->runMailQueue(7.8165919780731)
#4 /home/rocket0191/public_html/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_MailQueue->execute(Array, Array, 7.8165919780731, '')
#5 /home/rocket0191/public_html/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.8165919780731, '', false)
#6 /home/rocket0191/public_html/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#7 /home/rocket0191/public_html/deferred.php(23): XenForo_Model_Deferred->run(false)
#8 {main}

Request State:
array(3) {
["url"] => string(35) "http://localhost/deferred.php"
["_GET"] => array(0) {
["_POST"] => array(4) {
["_xfRequestUri"] => string(17) "/conversations/1/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
*NOTE: My site is not on my machine locally. I've only replaced the actual URL with "localhost".


XenForo moderator
Staff member
You are using the PHP mail function so XenForo passes the email to sendmail or the equivalent on the server.

The failure is at the server level, you can check the server mail log to see why it is failing.

Your host should be able to help with that.


I run my instance of XenForo on a VPS and for whatever reason, I didn't think to install sendmail. (facepalm)

Thank you very much!