Pinned topic Email with extra line breaks through send mail
We have created a send mail activity within Cast Iron that will take text we send to the body to inform users we have a new client. Our email system adds a legal disclaimer to the bottom of the email, and our body is merging in with the disclaimer. Is there a good way to add line breaks in our text so there is separation in the email? We are sending a concatenated string to the text part of the body. We are using a mix of strings and variables to build this. I have tried "/n" in this, but all it does is add "/n" to the end of the text. Any help would be appreciated
RE: Adding extra line breaks to the email body2009-04-28T13:41:02ZThis is the accepted answer. This is the accepted answer.
Go to the Functions tab. Right-click the Custom Functions and select "Add new Custom Function". Type in the function name AddNewLineNoInput (or whatever you choose). There is no input and it should return a String element then click Next. Paste this into the dialog window:
Click Compile, Click Finish. You can drag this function to your email activity and map it to the body as many times as you want. It will insert a blank line in the body. You can even make variations of this function like "Add5BlankLines" using
var outStr = ('\n\r')+('\n\r')+('\n\r')+('\n\r')+('\n\r');
Hope this helps.
Steven M. Longo
Another way to add line breaks2009-04-28T14:20:44ZThis is the accepted answer. This is the accepted answer.You could also add an input parameter to enter how many line breaks you want. Like this:
var i = 1
var outStr = ''
while (i<=inputNum)<br />
outStr = outStr + ('\n\r');
(No error checking on input in this example)