Whenever using the Save mail message activity, the email always saves in .eml format, however, the requirement is to save the email in Outlook format (.msg).
Whenever the activity "Save mail message" activity is used, the email always saves in .eml format.
To save the email in .msg format, use the below methods,
- Using "Save Outlook Mail message" Activity
- After retrieving the mail message object using "Get Outlook mail message" activity
- Use the "Save Outlook mail message" activity and select "Outlook Message Format(.msg) in the property 'Save as type'
- Make sure to use UiPath.Mail.Activities version above 1.10.5
- Using Modern "Save Mail" Activity
- Drag and Drop "Use Outlook Desktop App" and place the "For Each Mail" activity inside this activity
- Use the "Save Mail" Activity and provide the all required fields ( Note: if providing a filename, use a filename without extension). In the case of Outlook Desktop App, it will automatically save the email in msg format, however in the case of Use Outlook 365 or Use Gmail activity it will still save as eml format by design.
- Ensure UiPath.Mail.Activities version is above 1.12.2
Note:
The above methods will only work for Outlook desktop application activities not for any other email activities like Outlook 365, Gmail and Exchange.