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.

2 Likes

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

1 Like

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.

2 Likes

Sure, let me check it @MGP

Will keep you posted.

1 Like

Hey @MGP

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

Thanks
#nK

1 Like

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

1 Like

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.

2 Likes

Hey @MGP

Check this once if it helps,

Thanks
#nK

1 Like

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.

2 Likes

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

2 Likes

Hey @Nithinkrishna

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

2 Likes

Facing same issue, pls share final solution if any?

1 Like

Try aspose.email with invoke c# code

1 Like

@MGP
You got any solution for above issue without using third party libraries? please let me know ?

Im facing same issue .

1 Like

Hi @MGP
you got any solution for this ?please let me know if you have any solution?

1 Like

Hi @Nikhilesh_Mishra Can you please help me if you have any solution for this ?

1 Like