[Zope] sendmail host hardcoded ?

Gijs Reulen greulen@gilsing.nl
Tue, 20 Feb 2001 21:24:51 +0100


Hi

I am trying to pass a variable with the hostname to the smtphost parameter
of sendmail:

<dtml-var standard_html_header>
<dtml-sendmail
smtphost="PARENTS[_.len(PARENTS)-1].getProperty('mail_smtphost')">
To: <dtml-var "PARENTS[_.len(PARENTS)-1].getProperty('mail_to')">
From: <dtml-var sendername> <<dtml-var senderaddress>>
Subject: <dtml-var subject>
<dtml-var comments>
</dtml-sendmail>
</dtml-let>
<dtml-var standard_html_footer>

This results in a host not found error. However, when I hardcode the
smtphost like:

<dtml-sendmail smtphost="192.168.0.20">

This works.

I also tried (did not work):

<dtml-let myhost="PARENTS[_.len(PARENTS)-1].getProperty('mail_smtphost')">
<dtml-var myhost>
<dtml-sendmail smtphost=myhost>

I am very sure the property is defined and returns the correct value
(tested).

What can I do ?

Gijs