hi, i am experiencing a strange problem with using the mailhost example on zope.com. here is the code: <dtml-var standard_html_header> <dtml-sendmail mailhost="MailHost"> To: michaelangelo@webmind.com From: michaelangelo@intelligenesis.net Subject: Feedback from the web message goes here </dtml-sendmail> <h1>Thank you for your input!</h1> <p>Your comments have been sent.</p> <dtml-var standard_html_footer> here is the traceback: Error Type: TypeError Error Value: len() of unsized object Traceback (innermost last): File C:\PROGRA~1\numan\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\numan\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\numan\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\PROGRA~1\numan\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\numan\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: SendFeedback) File C:\PROGRA~1\numan\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: SendFeedback) File C:\PROGRA~1\numan\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: SendFeedback) File C:\PROGRA~1\numan\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: SendFeedback) File C:\PROGRA~1\numan\lib\python\Products\MailHost\SendMailTag.py, line 188, in render (Object: MailHost) File C:\PROGRA~1\numan\lib\python\Products\MailHost\MailHost.py, line 222, in send (Object: MailHost) File C:\PROGRA~1\numan\bin\lib\smtplib.py, line 465, in sendmail File C:\PROGRA~1\numan\bin\lib\smtplib.py, line 349, in mail File C:\PROGRA~1\numan\bin\lib\smtplib.py, line 118, in quoteaddr File C:\PROGRA~1\numan\bin\lib\rfc822.py, line 451, in parseaddr File C:\PROGRA~1\numan\bin\lib\rfc822.py, line 496, in getaddrlist File C:\PROGRA~1\numan\bin\lib\rfc822.py, line 504, in getaddress File C:\PROGRA~1\numan\bin\lib\rfc822.py, line 484, in gotonext TypeError: (see above) maybe it doesn't like the address? i have checked the host/port connection, it's ok. any ideas appreciated. thanks mike
Michael Angelo wrote:
hi,
i am experiencing a strange problem with using the mailhost example on zope.com.
here is the code:
<dtml-var standard_html_header>
<dtml-sendmail mailhost="MailHost"> To: michaelangelo@webmind.com From: michaelangelo@intelligenesis.net Subject: Feedback from the web
message goes here </dtml-sendmail>
<h1>Thank you for your input!</h1> <p>Your comments have been sent.</p>
<dtml-var standard_html_footer>
Yes...I have found this error too....try specifing mail properties using the attributes of the dtml-sendamail tag like <dtml-sendmail mailfrom="michaelangelo@intelligenesis.net" mailto="michaelangelo@webmind.com" subject="Feedback from web"> message goes here </dtml-sendmail> I have resolved my problem with this trick...it's not so flexible as specify the attributes in the body....... hope this helps... Alberto
From: Michael Angelo <michaelangelo@webmind.com>
i am experiencing a strange problem with using the mailhost example on zope.com.
Is your code indented the way it is in your email? I don't think dtml-sendmail and its contents should be indented, since the contents are meant to be the literal text of the message and its headers. Cheers, Evan @ digicool & 4-am
that was the problem. i never would have thought of that! :-0 thanks!!!! :-) -<mike>- -----Original Message----- From: Evan Simpson [mailto:evan@4-am.com] Sent: Monday, January 22, 2001 11:51 AM To: Michael Angelo; zope@zope.org Subject: Re: [Zope] mailhost example problem From: Michael Angelo <michaelangelo@webmind.com>
i am experiencing a strange problem with using the mailhost example on zope.com.
Is your code indented the way it is in your email? I don't think dtml-sendmail and its contents should be indented, since the contents are meant to be the literal text of the message and its headers. Cheers, Evan @ digicool & 4-am
participants (3)
-
aZaZel -
Evan Simpson -
Michael Angelo