Trouble saving Attachments from .eml Files Using "Read Email from Saved File to Object" Activity

I have already followed the solution availble on UiPath forum, in that i am stucked

I have a task where I need to download attachments from a list of .eml files. Each .eml file contains 2-3 attachments. Currently, I am using the “Read Email from Saved File to Object” activity from the UiPath Marketplace to convert my .eml files into objects: Read Email from Saved File to Object

However, when I try to debug or save the attachments from the .eml object using a For Each loop or the Save Attachments activity, I am unable to extract and save the attachments. It seems that the .eml object is not fetching the attachments list correctly.

Is there something I am missing? How can I effectively extract and save attachments from these .eml files? I would appreciate any expert help on this matter.

the emailObject is of type argument: System.Net.Mail.Message

image1:

image2:

thanks in advance.

Hi,
It seems the activity saves attachments to folder in AttachmentsFilePath property. Can you try to set some folder in this property then run?

Regards,

reply 2:
but when we see the folder :

its empty, thats the problem i am facing since begining.

Here are the results of the way i run the activivty:

as you can see in the image , it creates a temp folder inside the folder i had set.
[/quote]

Hi @Yoichi

the way i tried to run as you suggested, but it saves empty folder. please see my above screenshots
i am 100% sure , there are 2-3 atachments in my .eml file.

However do you know how can we save atachments from System.net.mail.mailmessage object ?

please let me know, i am stucked very critically

thanks

Hi,

Can you share sample eml file? It’s no problem if dummy data which can be reproduced the matter.

Regards,

Hi @Yoichi , here is the zip folder, it was not allwoing me to upload.eml files
eml.zip (1.0 MB)

HI,

it seems the activity doesn’t support the eml format because body includes attachement part.

I wrote workflow to extract attachments by code. Can you try the following sample?

Sample
Sample20240531-1.zip (1.4 MB)

Regards,