[Zope] Namespace problem with the dtml-sendmail and the smtphost
Max Møller Rasmussen
maxm@normik.dk
Wed, 4 Oct 2000 14:03:56 +0200
I have a dtml method in a zClass that looks like this:
<dtml-sendmail smtphost=theSMTPHost>
To: maxm@normik.dk
From: test@normik.dk
Subject: This is a test
A test!!!
</dtml-sendmail>
"theSMTPHost" is defined as a property in the zClass. But when i use the
method I get a:
Error Type: error
Error Value: host not found
If i write:
<dtml-sendmail smtphost="mail.tele.dk">
It gets send without a hitch.
and if I write <dtml-var theSMTPHost> it returns mail.tele.dk as expected.
I then try this, which also fails.
<dtml-call "REQUEST.set('theSMTPHost', 'mail.tele.dk')">
Mailhost: <dtml-var theSMTPHost>
<dtml-sendmail smtphost=theSMTPHost>
To: maxm@normik.dk
From: test@normik.dk
Subject: This is a test
A test!!!
</dtml-sendmail>
Is it not possible to set the smtphost to a string in a dtml variabel?
Regards Max M