Multiple Attachments using Send Email action

I have a set of files in a directory and have a list of those files in a variable. I use that variable in the attach tab and it works fine as long as there is only one file in the list. If I have more than one file it fails to find any of them. For the separator between files I have used a CRLF, TAB comma, semicolon and space and it will not work.

Hi Dale,

You can’t actually do this at the moment. However, I’m just testing a change which will allow multiple line variables to expand to multiple attachments. I’ll let you know when a test build is available.

In the meantime, you can use the following JScript workaround in the BeforeAction script event. Separate the attachments’ names with CRLF:

Action.AttachmentsObject.Text = AttachmentsVariable;

(replace AttachmentsVariable with the name of your variable. Note that setting the Text property will erase any entries which are already in the Attachments list.)