[Zope] problem with mailForm package
Jack Coates
jack@monkeynoodle.org
Wed, 2 Jan 2002 16:29:58 -0800 (PST)
Hi,
I'm trying to do a mail form and it's throwing TypeErrors.
Here's the form:
<strong style="color: #FF0000">Name: </strong> <input type="text"
name="1) Name"><br>
<strong style="color: #FF0000">Street_1: </strong> <input type="text"
name="2) Street_1" cols="60" rows="1"><br>
Street_2: <input type="text" name="3) Street_2" cols="60" rows="1"><br>
<strong style="color: #FF0000">City: </strong> <input type="text"
name="4) City" cols="20" rows="1">
<strong style="color: #FF0000">State: </strong> <input type="text"
name="5) State" cols="2" rows="1">
<strong style="color: #FF0000">Zip: </strong> <input type="text"
name="6) Zip" cols="10" rows="1"><br>
Phone: <input type="text" name="7) Phone" cols="12" rows="1">
<strong style="color: #FF0000">Email: </strong> <input type="text"
name="8) Email" cols="30" rows="1"><br>
<strong style="color: #FF0000">Title and Quantity: </strong><br>
1: <input type="text" name="9) Title_1" cols="50" rows="1"> <input
type="text" name="10) Quantity_1" cols="3" rows="1"><br>
2: <input type="text" name="11) Title_2" cols="50" rows="1"> <input
type="text" name="12) Quantity_2" cols="3" rows="1"><br>
3: <input type="text" name="13) Title_3" cols="50" rows="1"> <input
type="text" name="14) Quantity_3" cols="3" rows="1"><br>
4: <input type="text" name="15) Title_4" cols="50" rows="1"> <input
type="text" name="15) Quantity_4" cols="3" rows="1"><br>
5: <input type="text" name="16) Title_5" cols="50" rows="1"> <input
type="text" name="17) Quantity_5" cols="3" rows="1"><br>
6: <input type="text" name="18) Title_6" cols="50" rows="1"> <input
type="text" name="19) Quantity_6" cols="3" rows="1"><br>
7: <input type="text" name="20) Title_7" cols="50" rows="1"> <input
type="text" name="21) Quantity_7" cols="3" rows="1"><br>
8: <input type="text" name="22) Title_8" cols="50" rows="1"> <input
type="text" name="23) Quantity_8" cols="3" rows="1"><br>
9: <input type="text" name="24) Title_9" cols="50" rows="1"> <input
type="text" name="25) Quantity_9" cols="3" rows="1"><br>
10: <input type="text" name="26) Title_10" cols="50" rows="1"> <input
type="text" name="27) Quantity_10" cols="3" rows="1"><br>
Here's the traceback:
<!--
Traceback (innermost last):
File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 207,
in publish_module
File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 122,
in publish
File /usr/share/zope/lib/python/Zope/__init__.py, line 170, in
zpublisher_exception_hook
(Object: order_form)
File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 122,
in publish
File /usr/lib/python2.1/site-packages/ZPublisher/mapply.py, line 104,
in mapply
(Object: reply)
File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 111,
in call_object
(Object: reply)
File /usr/share/zope/lib/python/OFS/DTMLMethod.py, line 168, in
__call__
(Object: reply)
File /usr/lib/python2.1/site-packages/DocumentTemplate/DT_String.py,
line 434, in __call__
(Object: reply)
File /usr/share/zope/lib/python/Products/MailHost/SendMailTag.py, line
177, in render
(Object: felix.monkeynoodle.org)
File /usr/share/zope/lib/python/Products/MailHost/MailHost.py, line
203, in send
(Object: )
File /usr/lib/python2.1/smtplib.py, line 410, in sendmail
File /usr/lib/python2.1/smtplib.py, line 358, in mail
File /usr/lib/python2.1/smtplib.py, line 115, in quoteaddr
File /usr/lib/python2.1/rfc822.py, line 472, in parseaddr
File /usr/lib/python2.1/rfc822.py, line 515, in getaddrlist
File /usr/lib/python2.1/rfc822.py, line 525, in getaddress
File /usr/lib/python2.1/rfc822.py, line 506, in gotonext
TypeError: (see above)
-->
And here's the platform:
Zope Version
(Zope 2.4.2 (source release, python 2.1, linux2), python 2.1.1,
linux-i386)
Python Version
2.1.1 (#1, Aug 30 2001, 17:36:05) [GCC 2.96 20000731 (Mandrake Linux 8.1
2.96-0.61mdk)]
System Platform
linux-i386
I get the same errors when I tried the DTML form example from the
advanced dtml howto, so I suspect it's Python and SMTP interactions? The
mailer is Postfix-20010228_pl04release-1 running on the same host, and
I've tried setting the mailhost item to hostname, localhost, loopback
IP, and external IP with no change.
On another note, the form seems to ignore any hints for sizing -- e.g.,
all the boxes come out the same size regardless of the col and row tags.
Any ideas?
Thanks,
--
Jack Coates
Monkeynoodle: A Scientific Venture...