Email AttachmentH

Hi Team,
I am practicing a simple code.
Placed two .png files want to attach and send to my official mail id.
In Assign using the Directory.get files… in For loop it correctly retrieving these two files.
Using - Send Outlook Mail Message activity to send mail
Instead of 2 attachment it’s sending 3 attachments its reattaching same file again

Hi @Honda ,

what you given in for loop, and check before looping in send email is there any attachments exist, if possible can you share your code snaps

@Honda,

Kindly share your code to review and suggest a fix.

This is the code i am trying

Screenshots is the folder which contains 2 .png files. Loop message box correctly shows only 2 files are there

@Honda,

Use FileDirectory.Count to get the count of files to check how many files are being passed.

Also check if you have passed any file in Attachments property as well.

Thanks another attachment is there that’s why one additional file is attached

1 Like

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