Send email with line breaks
Posted: Wednesday 14 February 2018 11:28
Hi,
Im trying to send emails within a dzVents script, where the email body consists of a concatenated string including line breaks (\n)
Obviously the line break escape codes (\n) are ignored and the whole message is submitted in the email as unformatted string in the body,
which looks like a mess.
I've tried the same thing in a normal Lua-Script and in a Blockly-Script.
Lua creates the same mess in the email, Blockly is doing the job as expected.
Any idea, what I can do to make escape codes not being ignored in dzVents/Lua ?
Im trying to send emails within a dzVents script, where the email body consists of a concatenated string including line breaks (\n)
Obviously the line break escape codes (\n) are ignored and the whole message is submitted in the email as unformatted string in the body,
which looks like a mess.
I've tried the same thing in a normal Lua-Script and in a Blockly-Script.
Lua creates the same mess in the email, Blockly is doing the job as expected.
Any idea, what I can do to make escape codes not being ignored in dzVents/Lua ?