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:
- Create a variable ‘multiAttach’ of type string array.
- Assign multiAttach = Directory.GetFiles(“folder path”)
- In Send outlook mail messages, instead of attaching files use AttachmentsCollections from the properties and pass ‘multiAttach’ variable.(Please see below image)
Main.xaml (14.3 KB)
check this file for more details
You can give a try with below method.
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.