How to convert .eml file to .msg file without using 3rd party custom libraries?

Hello uipath experts out there,

anyone knows how to use this solution in UiPath to convert .eml file to .msg file without using custom UiPath Package/Activities?

Thanks.

1 Like

Hey @MGP

Do you want to convert an MSG file to EML file right or to get a mail from mailbox and cover it to EML ?

Kindly confirm.

Thanks
#nK

Hi @Nithinkrishna

I am getting email via Exchange activity and saving them in .eml format.
Now, I would like to convert those .eml files to .msg files without using any 3rd party libraries.

There is also known solution which I have attached in my question, but I don’t know how to use it in UiPath. It would be great help if you can explain that or provide your own solution.

Thanks.

1 Like

Sure, let me check it @MGP

Will keep you posted.

Hey @MGP

Just curious to know, why don’t you directly save it in MSG format.

Thanks
#nK

Hi

I would suggest to save directly as msg file if we are not going to use that eml file

Refer this thread to save the mail as msg file with a xaml file

cheers @MGP

Hi @Palaniyappan & @Nithinkrishna

I have tried to save directly as .msg file but there was a problem.

On production VMs, we can not use outlook activites becuase outlook is not available. That’s why we can not use “save outlook mail message” activity to save directly as .msg file

When I use “save mail message” to save it directly as .msg file then downloaded file is not accessible with following message. This is known problem from uipath.

So, as a work around I try to save it as .eml & convert it as .msg file but that also I find it difficult without using any 3rd party libraries. Any solution would be helpful here.

Thanks.

1 Like

Hey @MGP

Check this once if it helps,

Thanks
#nK

Thanks for the suggestion @Nithinkrishna

In this process we archive emails for audit purpose and it would not be great idea to perform copy and paste option to convert eml to msg. In this case, there is room for manipulation which will not look good while audit.

That’s why I am looking for a method which can directly convert eml to msg.

PS. my apologies if it sounds too demanding but it’s matter of security in audit.

Thanks.

1 Like

Hey @MGP

No worries, It’s fine as you have a valid scenario.

We will see if anything comes up and keep you posted.

Thanks
#nK

1 Like

Hey @Nithinkrishna

By any chance any valid solutions for above issue?
I have same scenario in my case!

1 Like

Facing same issue, pls share final solution if any?