[Zope] Re: sendmail tag

Maik Jablonski maik.jablonski@uni-bielefeld.de
Thu, 16 Jan 2003 15:04:07 +0100


Sungmook Kim wrote:
> hi,
> 
> i'm trying to use this sendmail tag but received an error message which 
> i cannot understand. could someone help me out here? thanks
> 
> 
> ---error message---
> Error Type: TypeError
> Error Value: len() of unsized object
> 
> ---my code---
> --the "code" SendFeedback--
> 
>   <dtml-sendmail smtphost="localhost">
>     To: Feedback Recipient <dotorimookl@yahoo.com 
> <mailto:dotorimookl@yahoo.com> >
>     From: Zope Feedback Form <zope_form@example.com 
> <mailto:zope_form@example.com>>
>     Subject: Feedback from the web
> 
>     Feedback from : <dtml-var name>
>     message:
>     <dtml-var comments>
>     </dtml-sendmail>

Please remove all whitespace (indent) in your mail-header. Something 
like this should work:

<dtml-sendmail smtphost="localhost">
To: Feedback Recipient ...
From: Zope Feedback Form ...
Subject: Feedback from ...

Feedback from : <dtml-var name>
message: <dtml-var comments>
</dtml-sendmail>

Cheers, Maik