Has MailHost API changed?
Hi everyone, I had a perfectly functioning MailHost object until recently. Site visitors could email feedback to me from the Web page with no trouble. I can't pin it down exactly, but the breakage seems to coincide with a upgrade to 2.2.4 a while ago. The problem also exists in 2.3.0a2. Here's the traceback I get: <!-- Traceback (innermost last): File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/Publish.py, line 187, in publish File /var/lib/zope/2.3.0a2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/Publish.py, line 171, in publish File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: sendfeedback) File /var/lib/zope/2.3.0a2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: sendfeedback) File /var/lib/zope/2.3.0a2/lib/python/OFS/DTMLDocument.py, line 176, in __call__ (Object: sendfeedback) File /var/lib/zope/2.3.0a2/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: sendfeedback) File /var/lib/zope/2.3.0a2/lib/python/Products/MailHost/SendMailTag.py, line 182, in render (Object: MailHost) KeyError: (see above) --> Here's the method I use to send email: <dtml-var standard_html_header> <dtml-sendmail mailhost="MailHost"> To: Feedback Recipient <wilson@visi.com> From: <dtml-var visitor_email> Subject: Feedback from the web Feedback from : <dtml-var visitor_name> Comments: <dtml-var comments> </dtml-sendmail> <table> <tr> <dtml-var district_links> <td valign=top> <H3>Thank you for your input!</H3> Your message has been sent. <BR><BR> <CENTER><a href=http://www.isd197.k12.mn.us/>Click here to return to the home page.</a></CENTER> </td> </tr> </table> <dtml-var standard_html_footer> Anybody see a problem? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
participants (1)
-
Timothy Wilson