Hello! I have a list of files. How can I send all files in that list as attachments using the E-Mail Step? The E-Mail Step allows me only to define a known number of attachments. Or is there another way to send a E-Mail with a variable number of attachments? asked 23.01.2015 at 15:01 Peter Weber |
Currently it is not possible to define a list directly in the Mail-Step. As a workaround a predefined number of attachments can be added while using a simple macro. The macro gets the corresponding entry from the list, if it exists, or it returns an empty string.
The configuration of the E-Mail Step could look like this print screen: answered 26.01.2015 at 09:56 Flavio Sadeghi ♦♦ Yes, it works, but produces warnings for each line where the makro results in an empty string: WARNING: Email attachment: <%=(in.files.size() > 3) ? in.files.get(3) : ""%> is skipped, because it resulted an empty resource name.
(27.01.2015 at 15:41)
Peter Weber
|
You can send mails from a script step with this java class.
And to execute the code as system user.
answered 11.03.2015 at 16:07 HaraldWeber |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 23.01.2015 at 15:01
Seen: 3,005 times
Last updated: 11.03.2015 at 16:07