Error occurred while sending mail in zend framework.
5.1.3 Invalid address^M
Following error occured:
#
0 /var/test/trunc/library/Zend/Mail/Protocol/Smtp.php(289): Zend_Mail_Protocol_Abstract->_expect(Array, 300)
#1 /var/test/trunc/library/Zend/Mail/Transport/Smtp.php(209): Zend_Mail_Protocol_Smtp->rcpt('')
#2 /var/test/trunc/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /var/test/trunc/library/Zend/Mail.php(724): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /var/test/trunc/library/test/Mail.php(71): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 /var/test/trunc/library/test/Mail.php(881): test_Mail->sendEmail(Array)
#6 /var/test/trunc/application/models/TTN.php(379): test_Mail->sendHistory(12882, '<log><message t...')
#7 /var/test/trunc/application/controllers/TTNController.php(96): TTN->end(12882, Array)
#8 /var/test/trunc/library/Zend/Controller/Action.php(502): TTNController->Action()
#9 /var/test/trunc/library/Zend/Controller/Dispatcher/Standard.php(293): Zend_Controller_Action->dispatch('Action')
#10 /var/test/trunc/library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /var/test/trunc/application/Setup.php(339): Zend_Controller_Front->dispatch()
#12 /var/test/trunc/application/Setup.php(127): Setup->_dispatchFrontController()
#13 /var/test/trunc/public/index.php(4): Setup->run()
答案 0 :(得分:0)
我有同样的问题。
似乎MS Exchange服务器不允许中继,这意味着不允许发送来自外部源(如网络服务器)的电子邮件。
这应该有助于:http://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx
我按照它描述的方式设置它,但它仍然无法解决我的问题。我也不确定如何将MX-Server集成到我的网络应用程序中。在Zend_Mail_Transport_Smtp中将它用作Server-Adress给了我与之前相同的错误。也许其他人可以通过附加信息澄清这一点。