Add String in HTML Body email keep the formatting

Hello guys,
I need your help please.

I have this text stored on a variable called information:

Callsign GAC816P
Departing From EDDM
DATE 15.09.2021
Arriving At LFLC
ETA (z) 07:26
Crew 2
PAX 2

And I have this Body Email stores on a variable bodyEmail:

Now the email looks like this:
image

Instead I would like it to have the same formatting as before…
is that Possible?

Thank You

Store the information text with <br> tag which will allow a line spacing. Basically you will have to construct your html text as below,

Callsign GAC816P <br>
Departing From EDDM <br>
DATE 15.09.2021 <br>
Arriving At LFLC <br>
ETA (z) 07:26 <br>
Crew 2 <br>
PAX 2 <br>


Cheers @Hurmet_Noka

1 Like

That helps a lot!
Can you tell me how the beginning and end of expression looks like:
“” + “br/” + … like this?

1 Like

If i do it like this:

I get:

this gives me same result:

It’s more the same way you have used
Br means break line which is more like having Environment.Newline

So if you include
tag before the line start and <\br> For closing it works as same like environment.Newline

Cheers @Hurmet_Noka

1 Like

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