cancel
Showing results for 
Search instead for 
Did you mean: 

Loop files in folder and attach them into outlook while sending outlook mail

0 Kudos

Hi Everyone.

I want to loop files in folder ("C:\Temp\Files\") and attached all of them if they exists in folder into outlook while sending outlook mail.

How to do that ?

Thanks you!

Accepted Solutions (0)

Answers (2)

Answers (2)

Jerome
Advisor
Advisor
0 Kudos

Hi,

Have a look at this sample from the Store. It contains examples on how to perform such tasks with Outlook.

You have an example on how to attach multiple files in an email.

You only have to get all files from the folder (use ctx.fso.folder class)

Regards,

J.

Srinivas-Rao
Contributor
0 Kudos

Hi - You can refer to the standard bot called "FAQ". The functionality that you are looking for is implemented in there.

0 Kudos

Hi bro!

I want to add all of the files in one folder into outlook to send mail.

I can do this if want to attach a file only into outlook mail before sending email... but i don’t know how to attach multiple files in folders to outlook for sending email.

How to do that?

Thanks in advance!