• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Mail() is disabled for security reasons, host saying it's not

Hi all,

Bit of a strange one this, the hosting company (eukhost) is saying that they have allowed mail() to be enabled for the site, and under phpinfo.php it's showing as not being one of the disabled functions

Screen Shot 2017-03-02 at 9.23.29 AM.png

but yet when we try to send e-mails we are getting the error: -

Zend_Mail_Transport_Exception: Email to <genuine e-mail address> failed: Unable to send mail. mail() has been disabled for security reasons - library/Zend/Mail/Transport/Sendmail.php:137
Generated By: Unknown Account, 20 minutes ago

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

Request State
array(3) {
["url"] => string(37) "http://forum.jzmafia.com/deferred.php"
["_GET"] => array(0) {
["_POST"] => array(4) {
["_xfRequestUri"] => string(51) "/threads/japfest-2017-sunday-30th-april.2515/page-5"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"

Any ideas as to what could be causing this to happen?



XenForo developer
Staff member
This is an error coming from PHP, so it would be something internal; it's not something XF is directly involved in. It could potentially be something like Suhosin if that's installed. Otherwise, it's also possible that the phpinfo output is from a different configuration than is actually serving XenForo.