Frustrated with CDO
am 24.10.2007 22:57:56 von Nate
I have the following ASP code on a simple "experimental" page:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="from@blah.com"
myMail.To="to@blah.com"
myMail.CreateMHTMLBody "http://cic/targeted/results.asp"
mymail.configuration.fields.item("http://schemas.microsoft.c om/cdo/
configuration/sendusing")=2
mymail.configuration.fields.item("http://schemas.microsoft.c om/cdo/
configuration/smtpserver")="172.30.8.51"
mymail.configuration.fields.item("http://schemas.microsoft.c om/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.
Any ideas?
Re: Frustrated with CDO
am 24.10.2007 23:34:49 von Anthony Jones
"Nate" wrote in message
news:1193259476.967822.189610@t8g2000prg.googlegroups.com...
> I have the following ASP code on a simple "experimental" page:
>
> <%
> Set myMail=CreateObject("CDO.Message")
> myMail.Subject="Sending email with CDO"
> myMail.From="from@blah.com"
> myMail.To="to@blah.com"
> myMail.CreateMHTMLBody "http://cic/targeted/results.asp"
> mymail.configuration.fields.item("http://schemas.microsoft.c om/cdo/
> configuration/sendusing")=2
> mymail.configuration.fields.item("http://schemas.microsoft.c om/cdo/
> configuration/smtpserver")="172.30.8.51"
> mymail.configuration.fields.item("http://schemas.microsoft.c om/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.
>
> Any ideas?
>
Please don't multipost. I've addressed by response in the ASP group.
--
Anthony Jones - MVP ASP/ASP.NET