Skip to main content
Question

Sending e-mail from batch with parameters

  • November 29, 2019
  • 3 replies
  • 16 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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

david_r
Celebrity
  • 8394 replies
  • 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
  • 13 replies
  • 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.

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


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3704 replies
  • November 29, 2019

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