Skip to main content
Question

Sending e-mail from batch with parameters

  • November 29, 2019
  • 3 replies
  • 10 views

hanskoudijs
Forum|alt.badge.img

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?

3 replies

david_r
Evangelist
  • November 29, 2019

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


hanskoudijs
Forum|alt.badge.img
  • Author
  • November 29, 2019
david_r wrote:

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!!


redgeographics
Celebrity
Forum|alt.badge.img+49

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings