Logic Machine Forum
mail syntax. - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: mail syntax. (/showthread.php?tid=5188)



mail syntax. - stavros - 05.01.2024

Hello to everyone,
I have a script for sending an email which is
message = 'Server room temperatures is  ' .. tostring(value)
and is working.
Now i want to add a second value and a second text in the same mail. I have tried something like that
message = 'Server room temperatures is  ' .. tostring(value) 'Server room temperatures is  ' .. tostring(value1)
but without success.
The only one that working is this
message = 'Server room temperatures is' .. tostring(value)  .. tostring(value1)
But i want a text between the values.
Any idea?
Thank you in advance.


RE: mail syntax. - admin - 05.01.2024

Use this:
Code:
message = 'Server room temperatures is ' .. tostring(value) .. '<br>' ..
  'Server room temperatures is  ' .. tostring(value1)



RE: mail syntax. - stavros - 05.01.2024

Thanks, works perfectly.