Page 1 of 1

Send email with line breaks

Posted: Wednesday 14 February 2018 11:28
by cbartetzko
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 ?

Re: Send email with line breaks

Posted: Wednesday 14 February 2018 11:41
by emme
try with html tag <br>

Re: Send email with line breaks

Posted: Wednesday 14 February 2018 16:33
by cbartetzko
Yeah, that did the trick.
Thank you so much.
That's even better. Now I can build a table in the email with html tags.