[Zope] mailhost example problem

2001-01-22 Thread Michael Angelo

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: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Feedback from the web

message goes here
/dtml-sendmail

h1Thank you for your input!/h1
pYour 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


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] mailhost example problem

2001-01-22 Thread aZaZel

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: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Subject: Feedback from the web
 
 message goes here
 /dtml-sendmail
 
 h1Thank you for your input!/h1
 pYour comments have been sent./p
 
 dtml-var standard_html_footer
 
Yes...I have found this error tootry specifing  mail properties 
using  the attributes of the dtml-sendamail tag like

dtml-sendmail  mailfrom="[EMAIL PROTECTED]" 
mailto="[EMAIL PROTECTED]" 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


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] mailhost example problem

2001-01-22 Thread Evan Simpson

From: Michael Angelo [EMAIL PROTECTED]
 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


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] mailhost example problem

2001-01-22 Thread Geoffrey L. Wright

"Michael Angelo" [EMAIL PROTECTED] writes:

 hi,
 
 i am experiencing a strange problem with using the mailhost example on
 zope.com.
snip


This might sound totally off the wall, but I think that anything
enclosed in dtml-sendmail tags can't have any preceding whitespace.

Try this:


dtml-var standard_html_header

dtml-sendmail mailhost="MailHost"
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Feedback from the web

message goes here
/dtml-sendmail

  h1Thank you for your input!/h1
  pYour comments have been sent./p

dtml-var standard_html_footer


I think I remember having this same issue once upon a time.  But then,
it's 4:42 Alaska-time, so it may just be that I need to go to bed
now...

 thanks
 
 mike

//glw


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] mailhost example problem

2001-01-22 Thread Michael Angelo

that was the problem. i never would have thought of that! :-0

thanks :-)

-mike-

-Original Message-
From: Evan Simpson [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 11:51 AM
To: Michael Angelo; [EMAIL PROTECTED]
Subject: Re: [Zope] mailhost example problem


From: Michael Angelo [EMAIL PROTECTED]
 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


___
Zope maillist  -  [EMAIL PROTECTED]
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 )