Thu Jan 27, 2022 5:42 am
Login Register Lost Password? Contact Us

SendEmail, Outlook and newline characters

Comments and questions related to the Enterprise Control Language

Thu Apr 09, 2020 9:31 am Change Time Zone

Hi all,

As part of one of our builds we have a reporting email being sent.

We are using STD.System.Email.SendEmail to fire this off.

Within the string building we are using '\n' to format the output to make it easier to digest. The email starts off ok but then after about 20 lines the new line characters are ignored for a few lines. Things then go back to normal, before again newlines are removed.

I have used OUTPUT on the body variable and it looks ok within ECL IDE if I paste the string into a tool such as Notepad++

It seems that it is Outlook causing issues.

I don't want to be going down the route of pushing this data as an attachment so was wondering if there are any other methods/means to try and work around this?

I have so far tried using alternative such as html tags but those are just printed as plain text.
Posts: 17
Joined: Mon Sep 02, 2019 2:13 pm

Thu Apr 09, 2020 1:23 pm Change Time Zone


Have you tried using "\r\n" (DOS-style instead of Unix-style) instead?


Community Advisory Board Member
Community Advisory Board Member
Posts: 1612
Joined: Wed Oct 26, 2011 7:40 pm

Thu Apr 09, 2020 1:29 pm Change Time Zone

Hi Richard,

Thanks for the response.

Interestingly \r\n behaves the same way as \n\n and i get:

Code: Select all
Line 1

Line 2

as opposed to the desired

Code: Select all
Posts: 17
Joined: Mon Sep 02, 2019 2:13 pm

Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest