Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Line Break in Mail script

dpi
Kilo Contributor

Hi ,

My issue is related to Mail script . i need to Print the Following text along with water mark , But i need space of 2 lines after this text . i have tried with the Following for the desired output

template.print()

template.space()

<br/>

<p/>

\n and others

But the output shows like   Please let us know why you are very satisfied: :undefinedRef:MSG20671352

var body2 = "Please let us know why you are very satisfied: + '<br/>' + email.watermark;

can some one suggest me how to break the line after the text "Please let us know why you are very satisfied:"

desired output is like :

"Please let us know why you are very satisfied: <user will enter comments here>

email.watermark

Thanks

Durgaprasad

18 REPLIES 18

dravvyramlochun
ServiceNow Employee
ServiceNow Employee

what if you put a '\n\n' before the email.watermark ?



Have your tried this?


dilgit_dinesh
Kilo Contributor

I tried  \n\n but its not working. Please post script which worked for you

Archana Reddy2
Tera Guru

Hi,

Replace <br/> with <br\>. It works.

Mark as correct if it helps you.

Thanks,

Archana

Bhagya Lakshmi
Mega Guru

Hi,

Did you check on Newlines to html field on mail script.

Thanks.