[Zope] sendmail tag is quoting html

AM list_subscriber@neurobs.com
Mon, 10 Mar 2003 12:03:21 -0800

I have the following snippet in my standard_error_message:

<dtml-sendmail mailhost="mail_host">
To: aseem@somain.com
From: zope@host.domain.com
Subject: Zope Error: <dtml-var error_type>

Error Type: <dtml-var error_type>
<dtml-var error_tb>

The problem is that the error_tb is sent quoted like in the stuff below.
Any ideas why?? Any workarounds??


Error Type: NotFound

<p>Traceback (innermost last):

<li>  Module ZPublisher.Publish, line 89, in publish</li>

<li>  Module ZPublisher.BaseRequest, line 329, in traverse</li>

<li>  Module ZPublisher.HTTPResponse, line 636, in debugError</li>

</ul>NotFound: &lt;TABLE BORDER="0" WIDTH="100%"&gt;
&lt;TR VALIGN="TOP"&gt;

&lt;TD WIDTH="10%" ALIGN="CENTER"&gt;

&lt;TD WIDTH="90%"&gt;
  &lt;H2&gt;Site Error&lt;/H2&gt;
  &lt;P&gt;An error was encountered while publishing this resource.
  &lt;P&gt;&lt;STRONG&gt;Debugging Notice&lt;/STRONG&gt;&lt;/P&gt;

  Zope has encountered a problem publishing your object.&lt;p&gt;
Cannot locate object at: http://nbs.neuro-bs.com/dadada
  &lt;HR NOSHADE&gt;

  &lt;P&gt;Troubleshooting Suggestions&lt;/P&gt;

  &lt;LI&gt;The URL may be incorrect.&lt;/LI&gt;
  &lt;LI&gt;The parameters passed to this resource may be incorrect.&lt;/LI&gt;
  &lt;LI&gt;A resource that this resource relies on may be
      encountering an error.&lt;/LI&gt;

  &lt;P&gt;For more detailed information about the error, please
  refer to the HTML source for this page.

  &lt;P&gt;If the error persists please contact the site maintainer.
  Thank you for your patience.

- zope



 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes