Skip to main content

I want to sent an e-mail from a batch file calling a workbench with the Emailer-transformer, providing the To, Subject and Body with environment variables from that batch file. Is it possible to add newlines in the Body-text and if so, how do I do this?

How about using \\n for newlines in the body text and then a StringReplacer to convert those to proper newlines just before the Emailer.


How about using \\n for newlines in the body text and then a StringReplacer to convert those to proper newlines just before the Emailer.

Simple and effective. Never thought of this, but works perfectly. Thanks a lot!!


Another option is to use the HTMLReportGenerator to set up the email body. Gives you a bit more options than plain text.


Reply