Hi,
I want to send an email from the code, it has a long body, and im facing a problem with the line breaks, which are being ignored.
The message is allocated at the message.xml, and I don’t know how to specify line breaks, as manually enters:
Because on email line break is <br/> and not \n which is what is stored on the message.
But for emails you should be able to write the HTML as is using a translatable report and include the report content as part of the message. You can use the get_email function to render a report as an email.
I solved it just by replacing “\n” with “<br/>”, maybe its not the correct way but its simple, in case someone faces the same problem.
Thanks for helping guys.