Plone表单无法发送电子邮件

时间:2011-10-06 07:20:00

标签: forms email content-management-system plone

当我在plone 3.3.3中填写表格并尝试发送时,我收到以下错误:

Traceback (innermost last):
   Module ZPublisher.Publish, line 119, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 42, in call_object
   Module Products.CMFFormController.FSControllerPageTemplate, line 90, in __call__
   Module Products.CMFFormController.BaseControllerPageTemplate, line 26, in_call
   Module Products.CMFFormController.FormController, line 384, in validate   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 42, in call_object
   Module Products.CMFFormController.FSControllerValidator, line 58, in __call__
   Module Products.CMFFormController.Script, line 145, in __call__
   Module Products.CMFCore.FSPythonScript, line 140, in __call__
   Module Shared.DC.Scripts.Bindings, line 313, in __call__
   Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
   Module Products.CMFCore.FSPythonScript, line 196, in _exec
   Module None, line 20, in fgvalidate_base
    - <FSControllerValidator at /werknet20/fgvalidate_base used for /werknet20/formulieren/ideeenbus>
    - Line 20
   Module Products.PloneFormGen.content.form, line 589, in fgvalidate
   Module Products.PloneFormGen.content.form, line 630, in fgProcessActionAdapters
   Module Products.PloneFormGen.content.formMailerAdapter, line 491, in onSuccess
   Module Products.PloneFormGen.content.formMailerAdapter, line 888, in send_form
   Module Products.SecureMailHost.SecureMailHost, line 166, in send
   Module Products.MailHost.MailHost, line 144, in send
   Module Products.SecureMailHost.SecureMailHost, line 276, in _send
   Module Products.SecureMailHost.mail, line 132, in send
   Module smtplib, line 683, in sendmail
   Module smtplib, line 453, in rset
   Module smtplib, line 378, in docmd
   Module smtplib, line 355, in getreply
SMTPServerDisconnected: Connection unexpectedly closed

知道问题可能是什么? smtp配置正确(或者他们说)。

感谢名单!

1 个答案:

答案 0 :(得分:5)

如回溯所示,这是SMTP服务器的问题,而不是Plone。它很可能拒绝发件人。

最后几个步骤显示Python的smtplib module成功连接到您的服务器,因为只有在服务器已经接受了凭据时才执行sendmail调用。

smtplib然后尝试发送RSET的事实意味着MAIL FROM命令出错了;通常这意味着发件人被拒绝了。然后,您的SMTP服务器粗暴地关闭了连接,而不必费心等待QUIT

您需要查看您的SMTP服务器配置,看看会让它接受您的发件人的内容。