Sendmail tag and port number
Hi, everybody! I have a variable containing port for sendmail tag, say 'port_value'. How should I write it in the <dtml-sendmail>? The variant <dtml-sendmail smtphost="1.1.1.1" port=port_value> when pressing 'Save changes' tells that system can not convert value to int. Are any chances to do it? Thanks, Alexander Klimovich
Klimovich Alexander wrote:
Hi, everybody!
I have a variable containing port for sendmail tag, say 'port_value'. How should I write it in the <dtml-sendmail>?
Why on earth do you have that for? :)
The variant <dtml-sendmail smtphost="1.1.1.1" port=port_value> when pressing 'Save changes' tells that system can not convert value to int.
That's because 'port_value' is a string, and not an int. You have to tell it to use the variable, per standard dtml-syntax. &dtml-port_value; should work I think.
Klimovich Alexander wrote at 2003-4-2 14:55 +0300:
I have a variable containing port for sendmail tag, say 'port_value'. How should I write it in the <dtml-sendmail>?
The variant <dtml-sendmail smtphost="1.1.1.1" port=port_value> when pressing 'Save changes' tells that system can not convert value to int.
Are any chances to do it?
I fear not. But you can use the "mailhost"s "send" method from a Python Script. Search the mailing list archive for details. Dieter
participants (3)
-
Dieter Maurer -
Klimovich Alexander -
Lennart Regebro