"Nate" <nate.borland@westecnow.comwrote in message
news:1193259624.787522.15940@q3g2000prf.googlegrou ps.com...
Quote:
I have the following ASP code on a simple "experimental" page:
>
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="f...@blah.com"
myMail.To="t...@blah.com"
myMail.CreateMHTMLBody "http://cic/targeted/results.asp"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/sendusing")=2
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserver")="172.30.8.51"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserverport")=25
mymail.configuration.fields.update
myMail.Send
set myMail=nothing
%>
>
>
When attempting to hit this page, I receive:
>
>
CDO.Message.1 error '80070005'
>
>
Access is denied.
>
>
/experiments/emailtest.asp, line 6
>
>
I ran LogMon, and found the following error whenever I hit the page:
4:49:37 PM w3wp.exe:2992 OPEN D:\CIC ACCESS DENIED NT
AUTHORITY
\NETWORK SERVICE
>
>
I've tried adding the network service user to D:\CIC, but the same
error persists.
>
Did you grant read/write access?
What is D:\CIC anyway, a folder or root of the website?
Is this code running on CIC?
If you visit
http://cic/targeted/results.asp with a browser does it work?
Do you have ASP debugging turned on?
Having asked that lot, CreateMHTMLBody isn't a safe thing to using in ASP.
Ultimately it will use the WinINet API which is designed to be used by a
client. If you have many such requests running at the same time all sorts
of undesirable things can happen.
--
Anthony Jones - MVP ASP/ASP.NET