I have a document with a RichText field. The contents of this field were created using LotusScript (aTextVar + Chr$(10) + anotherTextVar + Chr@(9) + moreText, etc.).
When I use @Mailsend, and specify this RichText field for the “bodyFields” parameter, the email arrives ok but the Chr$(10)'s (carriage returns) have been stripped out, so the email contains one big long line of text. The Chr(9)'s (tabs) are retained - but I really need the carriage returns / line breaks to stay.
Any ideas?
Subject: How can I get @Mailsend not NOT strip out carriage returns
Try using @Newline instead of using specific characters.
Subject: RE: How can I get @Mailsend not NOT strip out carriage returns
Unfortunately, if I use “@Newline” in the LS that populates the RTF, then it is used as a literal string and I see the text “@Newline” all through the resulting email.
Subject: How can I get @Mailsend not NOT strip out carriage returns
Subject: RE: How can I get @Mailsend not NOT strip out carriage returns
Hmm - worth a try - but it made no difference unfortunately.
Subject: SOLVED - It was caused by a setting in the RTF field being referenced
I finally realized that the RTF field (being referenced for the @MailSend “bodyFields” parameter) had “Allow multiple values” enabled. When I disabled this option, the resulting email contained all the correct line feeds, etc.
Yay!!
Thanks all for your responses.
Subject: RE: SOLVED - It was caused by a setting in the RTF field being referenced
Subject: SOLVED!
Ah - well spotted. I’d changed it from Rich Text to a Text field while testing, and have now changed it back to a RTF - and it all works great.
Thanks!