Send email on outlook

How to attach more than one files in Attachments in outlook.sendEmail command?

Outlook.SendEmail Instance:OutlookInstance
Account:‘abc@xxx.com’
SendTo:‘pqr@xxx.com’
CC:’’ BCC:’’
Subject:’’
Body:’’ IsBodyHtml:False
Attachments:“D:\Documents\file1.xlsx D:\Documents\File2.xlsx”

But it gives error “Attachment not found”

How to resolve this issue?

@supriya.shelke
In attachments property you need give each file in double quote like below

Attachments: “D:\Documents\file1.xlsx" "D:\Documents\File2.xlsx”\

1 Like

@supriya.shelke, I suggest creating a list and insert the file paths (files) there.
Then use the list as an input to the “Attachments” argument.

Generally speaking, when you have to pass a series of items as an input, prefer to include them in a list and then pass the list around.

image

Best regards,
J.

3 Likes

:+1:Thanks. Its working well.

1 Like