10.02.2025, 18:49
I have created the following script, which works perfect, besides the new line command.
Any idea on how to get through that?
-- Get required variables
fVoltage = grp.getvalue('7/0/3')
iVoltage = math.floor(fVoltage)
-- Define email subject
subject = 'Dimos House - W/H 1 Voltage Failure'
-- Define email message
table[1] = "W/H 1 Voltage below expected value."
table[2] = "\n(Voltage : "
table[3] = tostring(iVoltage)
table[4] = "V)"
message = table.concat(table, '', i, j)
-- Send email
mail('xxxx@gmail.com', subject, message)
Any idea on how to get through that?
-- Get required variables
fVoltage = grp.getvalue('7/0/3')
iVoltage = math.floor(fVoltage)
-- Define email subject
subject = 'Dimos House - W/H 1 Voltage Failure'
-- Define email message
table[1] = "W/H 1 Voltage below expected value."
table[2] = "\n(Voltage : "
table[3] = tostring(iVoltage)
table[4] = "V)"
message = table.concat(table, '', i, j)
-- Send email
mail('xxxx@gmail.com', subject, message)