Attach files from dynamic folders to "Send Outlook Mail"

What version of UiPath Studio you are using?
Well mine was 2016.2.6274.

You can Get all files from Directory by using System.IO.Directory.GetFiles("Attachments") or Directory.GetFiles("Attachments")(If System.IO Namespace is already imported).

Basic Flow:

1. String[ ] fileNames_to_be_attache= Directory.GetFiles("Attachments")
2. System.Net.Mail.Message mail = new MailMessage()
3. For Each with type argument String.

foreach item in fileNames_to_be_attache{
System.Net.Mail.Attachement attachment = new Attachment(item,System.Net.Mime.MediaTypeNames.Application.Octet)
Invoke method -activity
type - (null)
TargetObject - mail.Attachments
MethodName - Add
parameter for invoke method-

Rest steps you can find in the image: