APIM Gateway Send Email Assertion triggers line break error in IE

Document ID : KB000117036
Last Modified Date : 05/10/2018
Show Technical Document Details
Question:
The users are using the SendEmail assertion in APIM Gateway to send registration emails to their clients. The content of this email has been formatted to meet with a company standards, however when these emails are received in outlook, it suppresses some line breaks and displays an error message stating 
"Extra line breaks in this message were removed". 

To attempt to isolate this issue, I have copied the complete text into a new outlook email and sent it to myself. This approach works which proves the issue only arises when we go through Layer7, using the Send email assertion. 

I have researched this outlook error and know it can be disabled by changing my outlook settings, however I cannot expect all of our clients to change their outlook as well. 

To help investigate this, I have attached the following files: 

My send email alert assertion simply contains the following text in the message body:

Test Line 1.

Test Line 2

Test Line 3

Test Line 4Test Line 4Test Line 4Test Line 4Test Line 4Test Line 4Test Line 4Test Line 4Test Line 4Test Line 4Test Line 4Test Line 4


Test Line 5

Test Line 6Test Line 6

Test Line 7.Test Line 7Test Line 7Test Line 7Test Line 7Test Line 7Test Line 7Test Line 7Test Line 7Test Line 7Test Line 7

Test Line 8

Test Line 9Test Line 9Test Line 9Test Line 9Test LINE BREAK
Test Line 10Test Line 10Test Line 10Test Line 10Test Line 10LINE BREAK
Test Line 11Test Line 11Test Line 11Test Line 11Test Line 11Test Line 11Test Line 11
Environment:
ENV: 9.3
Answer:
The solution is to essentially insert a TAB prior to each CR/LF which fools outlook into ignoring the line break check.