How to download the attachments in an email which contains an attachment in .msg file format


#1

Hello All,

Im trying to download the attachments in the email.

Im able to download the attachments in .xlsx,.pdf but i’m unable to download the attachment present in the .msg

.msg is a outlook item obtained when you save a particular email.

Please advise.

Regards,
Swapnil


#3

Swapnil, if you open the .msg file by making double click and wait for some time… then it will open in the out look(out look should install on the same machine). Then you can download attachments.

Please make sure attachment also saved with .msg file while saving it. Some times attachment will not save or will corrupt while saving…

Hope my inputs are useful.


#4

You can also script this process in powershell. You should be able to find examples on google. aka:
https://chris.dziemborowicz.com/blog/2013/05/18/how-to-batch-extract-attachments-from-msg-files-using-powershell/
Not exactly what you want, but that’ll give you a head start if you want to take this approach.

You can then execute your script from Uipath (And pass in your parameters if it’s designed that way)


#5

Hello Ram,

The steps that you advised holds true if the .msg file is already downloaded and then trying to read the attachments.

My question is how to download the .msg file which is in the form of an attachment in the received email.

Regards,
Swapnil


#6

Click the File tab and then click Save As.

  1. Browse to the file location where you want save the file.
  2. Enter a name for the file in the File name field.
  3. Click the Save as Type drop-down menu and then select Outlook Message Format (*.msg).
  4. Click the Save button. The email message will be saved in MSG (.msg) format.