Send Outlook Mail Message: Access to the path is denied

Hi,
I want to use Send Outlook Mail Activity but if I run the Bot as unattended, i became this Error and just as unattended:
Send Outlook Mail Message: Access to the path 'C:\Users\MyUser\AppData\Local\Temp\2 ’ is denied**.

Have you ever had this situation arise?

@Amir

Please check below thread

Hi @Amir

Ensure that the user account running the unattended robot has the necessary permissions to access the C:\Users\MyUser\AppData\Local\Temp\2 directory.
Verify that the account has sufficient permissions to send emails through Outlook.
Try clearing the temporary files in the C:\Users\MyUser\AppData\Local\Temp\2 directory. Sometimes, corrupted temporary files can cause such issues.

Hope it helps!!

Hi ,
The Bot has access to the Folder.

@Amir,

Is your bot is background process?

Thanks,
Ashok :slight_smile:

@Amir

Hope below thread helps your problem

No, not background process

@Amir,

Ok then I don’t see any other reason bot is running fine in attended mode and failing in unattended with access issue.

Is this intermittent or continuous issue?

Thanks,
Ashok :slight_smile:

that’s continuous issue at this moment

The error message says it doesn’t. Try a different path like C:\Users\MyUser\Downloads and see if it works.

ok I will try it.
Thx