MarketplaceStudioActivityMail Message Converter

Create your first automation in just a few minutes.Try Studio Web

Mail Message Converter

Mail Message Converter

by Internal Labs

StarStarStar

7

Activity

Downloads

13.1k

Kacper Korona
Posted 4 years ago

Hi,

We found an issue with a lot files in %temp% folder. There are for exmaple .pdf files that were attachments of e-mails processed within the workflow which are not deleted after they were processed and it seems it can be caused by "convert EML to MSG" activity.

Can you please verify this?

Best Regards,

Kacper

Anubhav Shankar
Posted 4 years ago ago

Yes Kacper, if the attachment folder is not mentioned, the system's temp folder is used.

Ellis, Rachel
Posted 4 years ago

Hi there, as mentioned by ANDOLF RINCON, I am also getting the issue where the sent date is being changed when the file is converted. How can I get the original date back?

Anubhav Shankar
Posted 4 years ago ago

Date 1/1/4501 is displayed as None by outlook application. This likely happened because the sent data was not parsed correctly by this activity. If you can share a dummy file for the same, I can look into it.

Regret the delay in response, I did not get the notificaiton for these questions.

ANDOLF RINCON
Posted 4 years ago

Hi, Thank you for this useful tool. However, I noticed that the "'sent date" changed to "Saturday, January 1, 4501 6:00 AM" is this a bug? Is it possible to preserve the sent date from the eml file?

Anubhav Shankar
Posted 4 years ago ago

Date 1/1/4501 is displayed as None by outlook application. This likely happened because the sent data was not parsed correctly by this activity. If you can share a dummy file for the same, I can look into it. 

Regret the delay in response, I did not get the notificaiton for these questions.

chihiro tokoro
Posted 5 years ago

i want to get the mail before sending from drafts folder and convert. I was able to get that email through 'GetOutlookMassages' activity. But I could not convert. When i get the mail from Inbox folder, i could convert . Can you please help me?...

Anubhav Shankar
Posted 5 years ago ago

Hi Chihiro, 

I'll suggest you a workaround here:

1. use the "save mail message" activity to save the message in ".eml" format first and then,

2. use "EML to MSG Converter" to convert the saved ".eml" file to ".msg" file format.

chihiro tokoro
Posted 5 years ago

Hi I want to get from Drafts folder. Then I got the error  "Object reference not set to an instance of an object". 

I want to get the before sending mailmassage anyway. can you help?

Anubhav Shankar
Posted 5 years ago ago

I am unable to understand your question. But for the error you're facing please keep in mind the following point:

MailMessage is your MailMessage object (please note that when you read from other mail reading activities, it gives you a collection of mailMessages and not a single mailMessage object).

The MSGFilePath is the complete file path (including the name of the resulting .msg file. For e.g. : c:\temp\myMail.msg ) and saveAttachmentFolder is an optional folder where the attachments from the mail will be saved.

Aakanksha Pathak
Posted 5 years ago

I tried using this custom activity it is continuously giving me the error file could not be opened. i have checked all the permissions and the file is also not opened anywhere.

can you help?

Anubhav Shankar
Posted 5 years ago ago

The MSG and EML paths are full paths including filenames with their respective extenstions (.eml and .msg), please double check that as well.

Navneet Panpaliya
Posted 5 years ago

I reinstalled the package and it resolved the issue. Thanks for great tool! 

But it would be good if this tool can retain the actual email format (i.e. HTML) because this tool is saving email in plain text format. This is when we use exchange activity to read emails but its working fine with outlook activity.

Also I found another issue where outlook lets you add multiple files with the same filename. In this case the activity cannot save the same file twice and even it did not saves email if I just want to save email without attachment(s).

Is there a way for a unique identifier or a counter to be added to the filename in such cases or to overcome this issue just to save email?

Thanks & Regards,

Navneet Panpaliya

Happy Automation! :-)

Anubhav Shankar
Posted 5 years ago ago

Thankyou for the feedback Navneet. That  could be the limitation of the activity for now. Will consider as an improvement going forward  

As a workaround you may tweak the attachment file names in the mailMessage object itself before using the activty to save it in the .msg format.

Shajan Jose
Posted 5 years ago

I tried to save Mail Message to .msg format in a particular folder. In property i passed mail message and the destination folder name. But am getting error message "Object reference not set to an instance of an object"

Could anyone please help me to uderstand the property in Mail mesage to MSG converter?

Anubhav Shankar
Posted 5 years ago ago

MailMessage is your sMailMessage object (please note that when you read from other mail reading activities, it gives you a collection of mailMessages and not a single mailMessage object). 

The MSGFilePath is the complete file path (including the name of the resulting .msg file. For e.g. : c:\temp\myMail.msg ) and saveAttachmentFolder is an optional folder where the attachments from the mail will be saved.

Navneet Panpaliya
Posted 5 years ago

Hello Anubhav,

I have a requirement for one of project where I tried using this Mail Message Converter and followed all steps mentioned in installion guide but still unable to install the package. I did find that it does not created lib folder which I guess it suppose to create it. Can you pleaes tell me what could be the issue? I am using UiPath 2018.4.6 version.

Thanks & Regards,

Navneet Panpaliya

Happy Automation! :-)

Anubhav Shankar
Posted 5 years ago ago

Hi Navneet, the installation of the package has the same steps as any other custom activity might have.  Not sure what might be the issue specific to this activity. Please check if you can install other custom packages.

Rahul Kataria
Posted 5 years ago

Can you help me for what is all possible reason for "Write to file failed ".error in eml to msg convertor activity

Anubhav Shankar
Posted 5 years ago ago

1. Permission to write the file in the folder you're trying to write in might not be appropriate. 

2. Data during conversion might not remain in s format to write it on a file. 

That's all I can think of. 

Please note, this activity may or may not work for certain situations because the EML parser has limitations in terms of converting certain mailMessages.

Rahul Kataria
Posted 5 years ago

While using eml to msg activity i am getting error as "Write to object failed".

Is this because of warning in mail as 

"If there are problems with how this message is displayed click here to view it in a web browser.

Click here to download pictures.To help protect your privacy .Mail prevented automatic download of some pictures in this message."

Anubhav Shankar
Posted 5 years ago ago

This should not be the case. But the in-mail pictures might not be captured during the conversion which is a known limitation of this activity.

Tomasz Rybka
Posted 5 years ago

Very useful package! Unfortunately I found little bug inside. When I use convert EML to MSG activity it deletes some mail receivers from fields TO and CC - but only those addresses that are inside my company network. Other addresses that are outside my company network stays. I added printscreen in link (adding attachment function is not working) . Do you maybe know what could be the reason?

https://ibb.co/5R9SBxs

Anubhav Shankar
Posted 5 years ago ago

Thank you Tomasz for raising this, I cannot point to any specific reason at the moment. I'll have to look into it.

Publisher

Internal Labs

Visit publisher's page

License & Privacy

License Agreement

Privacy Terms

Technical

Version

1.0.3

Updated

June 5, 2023

Works with

Studio: 21.10 - 22.10

Certification

Silver Certified

Application

Microsoft Outlook

Collections

Support

UiPath Community Support