Unable to send dynamic email attachments

Hi everyone… I need to download attachments from email for a specific subject and selave those attachments to a folder… Then send those attachments to myself… I have retrived the attachments… But done how to attach all those attachments in single mail… Pls help me out

hello @Saran

Welcome to Uipath community
you can send those attachments as a collection in your mail.

first add all you attachments to a collection
image

then pass the collection to your mail ,

Also this feature is available in above 1.2 version
image

Regards
Ajay

@Saran you can use

1.Assign activity GetFiles[] = Directory.getfiles(“foldername”)
2.Use send mail activity(smtp or outlook). In the properties AttachmentsCollection use getFiles[]

1 Like

@Ajju hi ajay…hv used add to collection as u suggested…wats d Collection and Item I need to input??

@inp …i…i hv assigned the files in folder to a file … can u show a sample xaml file or screenshot of SMTP activity alone??

hello @Saran

find the reusable workflow below to send a mail using SMTP, if you are not using SMTP change the activity to Outlook send mail activity

SendMail.zip (12.8 KB)

Regards
Ajay

@Ajju…Thank you for assisting to solve the issue…its working:)

1 Like

Enjoy the development :slight_smile:

Cheers @Saran

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