Send Outlook Mail | Attach PDF Files Dynamically

Hi all,
I want send an email through OUTLOOK with the attachment of 8 pdf files in a particular folder.
I aware about Send Outlook Mail Activity.
But i dont know how to attach multiple attachments dynamically.

@Palaniyappan @sandeep13 @Lahiru.Fernando

Pls guide me…

Thanks in Advance
Muthu

@muthu.m

Use Send Outlook Mail activity. In that you will find the attach option. You can attach multiple attachments by passing the arguments.

1 Like

@lukas_krishnan
Thanks for ur quick response.
Thats what im asking, how to pass the attachment path to arguments…?

Thanks
Muthu

@muthu.m
1.** filelist=Directory.getfiles(“folderpath”)**
2.Pass the filelist variable to attachmentsCollection property of send Send Outlook Mail activity

3 Likes

Hi @inp,
Thank u !!
What Data Type will i declare the variable filelist ?

System.Windows…??

Thanks
Muthu

@muthu.m filelist will declared with String[]

1 Like

@inp

Thanks a lot.
Will try and get back to you!!

Thanks
Muthu

Hi @inp,

Thanks a lot…!!!
Its working fine…

Warm Regards
Muthu

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.