Hi, I am trying to understand sending an email within Zope. Using a DTML method, I basically used the example from the "book". <dtml-let lmc="'lmcdonnell@protonenergy.com'"> <dtml-sendmail mailhost="MailHost"> To: <dtml-var lmc> From: <dtml-var lmc> Subject: <dtml-var lmc> Hi, please take a look at my resume. </dtml-sendmail> </dtml-let> <p>Your resume was sent.</p> But my error is len() of unsized object and the documentation does not address the problem (or I can't find it). Any pointers or examples will be a big help, thanks. Larry McDonnell Proton Energy Systems 50 Inwood Rd. Rocky Hill, CT 06067 (860) 571-6533 ext. 531 Email:lmcdonnell@protonenergy.com www.protonenergy.com
hi, don't indent your mail-header and don't use blank lines in it. the blank line seperates the header from the mailBody! <dtml-sendmail mailhost="MailHost"> To: <dtml-var lmc> From: <dtml-var lmc> Subject: <dtml-var lmc> Hi, please take a look at my resume. </dtml-sendmail> cheers, maik McDonnell, Larry wrote:
Hi,
I am trying to understand sending an email within Zope. Using a DTML method, I basically used the example from the "book".
<dtml-let lmc="'lmcdonnell@protonenergy.com'"> <dtml-sendmail mailhost="MailHost">
To: <dtml-var lmc> From: <dtml-var lmc>
Subject: <dtml-var lmc>
Hi, please take a look at my resume.
</dtml-sendmail> </dtml-let>
<p>Your resume was sent.</p>
But my error is len() of unsized object and the documentation does not address the problem (or I can't find it). Any pointers or examples will be a big help, thanks.
Larry McDonnell
Proton Energy Systems 50 Inwood Rd. Rocky Hill, CT 06067 (860) 571-6533 ext. 531 Email:lmcdonnell@protonenergy.com www.protonenergy.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
you cannot have any empty spaces in front of the header and content lines. take out that indentation and see if that helps. i also suggest taking out the empty line after the opening sendmail tag and before the closing sendmail tag. jens On Thursday, August 8, 2002, at 07:50 , McDonnell, Larry wrote:
Hi,
I am trying to understand sending an email within Zope. Using a DTML method, I basically used the example from the "book".
<dtml-let lmc="'lmcdonnell@protonenergy.com'"> <dtml-sendmail mailhost="MailHost">
To: <dtml-var lmc> From: <dtml-var lmc>
Subject: <dtml-var lmc>
Hi, please take a look at my resume.
</dtml-sendmail> </dtml-let>
<p>Your resume was sent.</p>
But my error is len() of unsized object and the documentation does not address the problem (or I can't find it). Any pointers or examples will be a big help, thanks.
Larry McDonnell
participants (3)
-
Jens Vagelpohl -
Maik Jablonski -
McDonnell, Larry