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 ?

@priyanka_tambe

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.

Directory.GetFiles("YourFolderpath","Common_pro*.yourExtension")

Regards

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

yes you are also right

we can use both method. :grinning: