Commit 54e7e207 authored by 's avatar

Fix bug 2089: fix "len of unsized object" in sendmail tag

parent 1c171c07
......@@ -82,8 +82,8 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
__rcs_id__='$Id: SendMailTag.py,v 1.9 2000/06/20 18:10:47 brian Exp $'
__version__='$Revision: 1.9 $'[11:-2]
__rcs_id__='$Id: SendMailTag.py,v 1.10 2001/03/27 16:14:42 brian Exp $'
__version__='$Revision: 1.10 $'[11:-2]
from MailHost import MailBase
from DocumentTemplate.DT_Util import *
......@@ -184,8 +184,10 @@ class SendMailTag:
mhost=MailBase()
mhost._init(self.smtphost, self.port)
mhost.send(self.section(md.this, md), self.mailto, self.mailfrom,
self.subject, self.encode)
mhost.send(render_blocks(self.section.blocks, md),
self.mailto, self.mailfrom,
self.subject, self.encode
)
return ' '
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment