I have a dtml method in a zClass that looks like this:

<dtml-sendmail smtphost=theSMTPHost>
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
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

_______________________________________________
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 )

Reply via email to