Question
=: emailSend(to: "some@email.com"; title: "some title"; body: $body)
body: str`"Expert's conclusion:" ++ #conclusion + $#nl + "Expert's signature:" ++ #sign`
How to correctly insert a line break using the $#nl
operator or another method when sending an email?
Answer
When sending an email, the body of the message is processed as HTML, and you need to pass a line break as <br>
:
=: emailSend(to: "some@email.com"; title: "some title"; body: $body)
body: str`"Expert's conclusion:" ++ #conclusion + "<br>" + "Expert's signature:" ++ #sign`