Access to the path denied in save mail message

Hi,
please make sure to provide the full filepath not just the folder path with the Save Mail Activity.
The final filepath should look some thing like this: “C:\Users\yourUserName\folder\subFolder\fileName.msg”
If you are having problems building the full filepath correctly with your bot, make use of Path.Combine(directory,folder,subfolder,fullFileName)

Please let me know if it helped :slight_smile:

Cheers

Try again with the full file path and the file extension “.eml”

Example: "“C:\Users\test\OneDrive\Documents\UiPath\eMail\filename. eml

This happens due to invalid Character in subject
try saving in below manner
in_ShareFolderPath+ mail.Subject.Replace(“:”,“”).Replace(“|”,“”).Replace(“*”,“”).Replace(“?”,“”).Replace(“",”“).Replace(”/“,”“)+”.EML"