[Zope] sendmail implementation problem

Lee lee.reilly@ntlworld.com
Tue, 16 Jan 2001 21:02:34 +0000


Hi Dieter,

Thanks again for your help :)

I'm having some trouble creating the new variable in REQUEST - maybe you
know why?

The REQUEST object holds:

KEY		ITEM
lreilly		lreilly (recipient - '@cs.strath.ac.uk' is appended)
ltlyer		ltyler (recipient - '@cs.strath.ac.uk' is appended)
subject		>subject<
sender		>sender<
message		>message<
senderEmail	>senderEmail<

But when I add in the code to create 'recipients' in the REQUEST object
and then try and view REQUEST's contents again I get an error:

> Error Type: NameError
> Error Value: recipients

Here's the method:

ø¤º°`°º¤ø,,,,ø¤º°`°º¤ø,,
<dtml-var standard_html_header>

<dtml-call "REQUEST.set(recipients,[])">
<dtml-in "REQUEST.form.items()">
	<dtml-if expr="_['sequence-key'] in
('message','sender','senderEmail','subject')">
		<input type="hidden" name="<dtml-var name="sequence-key">"
value="<dtml-var name="sequence-item">">
	<dtml-else>
		<dtml-call "recipients.append(_['sequence-key'])">
	</dtml-if>
</dtml-in>

<dtml-in expr="REQUEST.form.items()"> 
	<dtml-var name="sequence-key">: <dtml-var name="sequence-item"><br>
</dtml-in>

<dtml-var standard_html_footer>
ø¤º°`°º¤ø,,,,ø¤º°`°º¤ø,,

Can you see any obvious problems? Thanks very much for your time.

- Best regards,

Lee

--
Lee Reilly
mailto:lee.reilly@ntlworld.com

ø¤º°`°º¤ø,,,,ø¤º°`°º¤ø,,,,ø¤º°`°º¤ø,,,,ø¤º°`°º¤ø,,,,

HAVE SKILLS; WILL TRAVEL.

I'm currently looking for an internship in the USA
in the field of web development. Ideally, I'm looking
for a placement for 3 to 18 months. Can you help?

More details, my resume, etc. @
http://homepages.strath.ac.uk/~aeu97172/

</shameless plug>