This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

\n - newline inside a mail message
#1
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)
Reply


Messages In This Thread
\n - newline inside a mail message - by Chandrias - 10.02.2025, 18:49

Forum Jump: