Sending Email with EPL apps

Hello all,
I am trying to format the text of an email before sending it.
If I output the test to the Apama console it looks good, but as soon as I send the email, the text is not as I would expect it.
What I am trying to do is to insert where I want some new line character.
How I am doing it right now is like this:
“emailText := emailText + source + " - " + alarmInformation.AlarmSeverity + " - " + alarmInformation.EmailText + “\n”;”
But this does not work, do you have any suggestions?
Thank you and let me know.

Hello,

The text of the email is parsed as HTML (specifically, the Content-Type of outgoing messages is text/html), not as a string. In this case, you’d want to use <br> ( <br>: The Line Break element - HTML: HyperText Markup Language | MDN (mozilla.org)) to insert a new line here.

Hope this helps!

Thank you!! This fixed my issue.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.