I am using CDO.Message and everything is running fine until I try to add an attachment. I think that the problem is that the webserver running this code does not have permission to the resource where the attachment is stored, even though the users attempting to use this do!

You can see that I am not permissions expert!
IIS is set to Windows Authentication, no anonymous.

For example, I can access \\server\Files\test.doc directly but cannot run this code without an Access Denied error... Just to clarify, If I set the attachment to be a file on the webserver, it works fine.

Please can someone help me?
Thanks!

alex.

Spudhead

05-24-2007, 12:26 PM

Umm. I'm not an expert on network drives (or anything else for that matter), but... shouldn't that path start with a drive letter?

afranka

05-24-2007, 12:52 PM

Hi SpudHead!

Thanks for responding,
Using a UNC path instead of a mapping seems to work fine.

I have been playing with this this morning and have switched to using C# to do it so that I can use 'identity impersonation' via the web.config file. I have found a couple of other ways to do it but this does the trick!