Send mail with multiple attachment through SMTP activity

Hi All… I have some files whose name starting with “Common_pro” in one directory , how can I send th these files via mail ?


Please follow the below steps:

  1. Create a variable ‘multiAttach’ of type string array.
  2. Assign multiAttach = Directory.GetFiles(“folder path”)
  3. In Send outlook mail messages, instead of attaching files use AttachmentsCollections from the properties and pass ‘multiAttach’ variable.(Please see below image)

Multiple Attachments

Main.xaml (14.3 KB)

check this file for more details

Hi @priyanka_tambe

You can give a try with below method.



Why bother with a variable? Just put Directory.GetFiles(“folder path”) right into the AttachmentsCollection property.

1 Like

yes you are also right

we can use both method. :grinning:

Good morning everyone, I have a question, is it possible to send many emails with many attachments to different people? I need to send several emails to different people for example:

I used Attachments Collection for send several attachments but i have problems when i use foreach, help me please !!

You shouldn’t dig up a 2 year old post and reply to it. Create a new post with details of what you’re trying to achieve.