Cannot save attachments on local temp folder (Access denied)


#1

Hi there,

I try to save the attachments to the project folder, but I get an access denied error.
I then try to save them to the computers temp folder, I get the same error.
However, I can manually create and manipulate files and folders in both locations (project folder and temp), so there is no access right issue.
I have seen other topics regarding the full path and the “.eml” addition, but it was of no help to my case.

Please have a look. Any advice is much appreciated.

Kind regards,
Dimitrios


#2

Hi,
@dntakoulas
Try to save it in ur project path it self, use absolute path don’t give full path.

Regards,
Arivu


#3

Hi arivu96 and thanks for the tip. I tried that as well, same error


#4

Looks like you just have to pass the mailFullPath in Save Mail Message which is a full path (based on output), you seem to appending the path again.

image

image


#5

Thanks vvaidya, this stupid mistake caused this error.

I feel embarrassed, I guess need to stop working for today …


#6

Its Friday, have a beer.