Send email with or without attachment

Hello Everyone,
In this Project, I want to send the email but sometimes i have to attach multiple files and sometimes send without attachment.
Is there any way to send both email from same activity ? and if attachment variable is empty then throwing error “Send Outlook Mail Message: Path does not exist. Verify the path is correct.” Please assist me
Thank you in advance

Hi,

Can you try to use AttachmentCollection prtoerty in Properties panel, as the following?

Regards,

1 Like

i am getting file names from different paths

Hi,

listFiles is List<string> or IEnumerable<String> and it can have multiple path string, as the following.

Regards,

@Yoichi Thankyou, its working for me
i have one more query , i just send one email and i get the reply from user , Now i am using reply to activity to reply on same email but i am getting my email id into mail TO,