cancel
Showing results for 
Search instead for 
Did you mean: 

Email content with newline from R/3 using XI.

Former Member
0 Kudos

Hi all,

I am trying to send email from R/3 using XI mail adapter.

For content I am using a String in R/3 but the interpreter does not recognize the new line char \n embedded in the string.When the mail arrives it comes as a single line.

What is the right way to build the string so that line break is maintained.

Thanks ,

Bikram

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Bikram,

Try using 'nl' for new line. Not sure but worth a try. Let me know if it works. Let us wait for the comments from experts.

Regards,

Jai Shankar.

0 Kudos

Hello Bikram,

i guess this a bit too late for you but for all the others having the same question:

I think it depends in which format you send the email but for my scenario it worked with a user-defined function where you have something like that:

String newline = System.getProperty("line.separator");

return ("Sentence one." + newline + "Sentence two.");

Hope that helps

Mathias