I am trying to setup an error reporting system for our Intranet. We have a
Windows 2000 Server with SQL Server and we have an Exchange Server 5.5. I
need to set it up so I can use CDO mail. I have used CDO before, but have
never set it up to work. I built a small little page with some CDO code on
it, but I get an error when I try to run it. How can I set this up to send
mail from the webserver to people in our facility?

Thanks,
Drew

Re: CDO Mail by Ray

Ray
Thu Aug 12 13:21:19 CDT 2004

What error? And with what snippet of code?

Ray at work

"Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
news:O5FZVDJgEHA.2028@tk2msftngp13.phx.gbl...
>I am trying to setup an error reporting system for our Intranet. We have a
> Windows 2000 Server with SQL Server and we have an Exchange Server 5.5. I
> need to set it up so I can use CDO mail. I have used CDO before, but have
> never set it up to work. I built a small little page with some CDO code
> on
> it, but I get an error when I try to run it. How can I set this up to
> send
> mail from the webserver to people in our facility?
>
> Thanks,
> Drew
>
>



Re: CDO Mail by Drew

Drew
Thu Aug 12 13:30:17 CDT 2004

Sorry about the lack of details, I was trying to get the question out there
before I left for lunch...

Here is the code snippet I used.

<%
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")

objCDO.To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
objCDO.From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"

Dim txtSubject
txtSubject = "TESTING CDO Mail"

objCDO.Subject = "TEST"
objCDO.Body = txtSubject
objCDO.Send
%>

(I of course used @ instead of ATNOSPAM, just trying to keep my email addy
from those email address robots!)

Here is the error I received,

Error Type:
(0x80090020)
An internal error occurred.
/swvtc/cdotest.asp, line 15

Line 15 is, objCDO.Send

Thanks,
Drew


"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%23i8pYkJgEHA.3916@TK2MSFTNGP11.phx.gbl...
> What error? And with what snippet of code?
>
> Ray at work
>
> "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> news:O5FZVDJgEHA.2028@tk2msftngp13.phx.gbl...
> >I am trying to setup an error reporting system for our Intranet. We have
a
> > Windows 2000 Server with SQL Server and we have an Exchange Server 5.5.
I
> > need to set it up so I can use CDO mail. I have used CDO before, but
have
> > never set it up to work. I built a small little page with some CDO code
> > on
> > it, but I get an error when I try to run it. How can I set this up to
> > send
> > mail from the webserver to people in our facility?
> >
> > Thanks,
> > Drew
> >
> >
>
>



Re: CDO Mail by Aaron

Aaron
Thu Aug 12 13:39:28 CDT 2004

For starters, stop using CDONTS.NewMail. See http://www.aspfaq.com/2026 for
better techniques.

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
news:#hLeMqJgEHA.3476@tk2msftngp13.phx.gbl...
> Sorry about the lack of details, I was trying to get the question out
there
> before I left for lunch...
>
> Here is the code snippet I used.
>
> <%
> Dim objCDO
> Set objCDO = Server.CreateObject("CDONTS.NewMail")
>
> objCDO.To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> objCDO.From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
>
> Dim txtSubject
> txtSubject = "TESTING CDO Mail"
>
> objCDO.Subject = "TEST"
> objCDO.Body = txtSubject
> objCDO.Send
> %>
>
> (I of course used @ instead of ATNOSPAM, just trying to keep my email addy
> from those email address robots!)
>
> Here is the error I received,
>
> Error Type:
> (0x80090020)
> An internal error occurred.
> /swvtc/cdotest.asp, line 15
>
> Line 15 is, objCDO.Send
>
> Thanks,
> Drew
>
>
> "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> message news:%23i8pYkJgEHA.3916@TK2MSFTNGP11.phx.gbl...
> > What error? And with what snippet of code?
> >
> > Ray at work
> >
> > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > news:O5FZVDJgEHA.2028@tk2msftngp13.phx.gbl...
> > >I am trying to setup an error reporting system for our Intranet. We
have
> a
> > > Windows 2000 Server with SQL Server and we have an Exchange Server
5.5.
> I
> > > need to set it up so I can use CDO mail. I have used CDO before, but
> have
> > > never set it up to work. I built a small little page with some CDO
code
> > > on
> > > it, but I get an error when I try to run it. How can I set this up to
> > > send
> > > mail from the webserver to people in our facility?
> > >
> > > Thanks,
> > > Drew
> > >
> > >
> >
> >
>
>



Re: CDO Mail by Drew

Drew
Thu Aug 12 13:49:36 CDT 2004

If I use the following code,

<%
sch = "http://schemas.microsoft.com/cdo/configuration/"

Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "<enter_mail.server_here>"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
.To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

I get this error,

Error Type:
Microsoft VBScript runtime (0x800A0030)
Error in loading DLL: 'cdoConfig.Fields'
/swvtc/cdotest.asp, line 7

Thanks,
Drew

"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:eyu9MvJgEHA.236@tk2msftngp13.phx.gbl...
> For starters, stop using CDONTS.NewMail. See http://www.aspfaq.com/2026
for
> better techniques.
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> news:#hLeMqJgEHA.3476@tk2msftngp13.phx.gbl...
> > Sorry about the lack of details, I was trying to get the question out
> there
> > before I left for lunch...
> >
> > Here is the code snippet I used.
> >
> > <%
> > Dim objCDO
> > Set objCDO = Server.CreateObject("CDONTS.NewMail")
> >
> > objCDO.To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > objCDO.From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> >
> > Dim txtSubject
> > txtSubject = "TESTING CDO Mail"
> >
> > objCDO.Subject = "TEST"
> > objCDO.Body = txtSubject
> > objCDO.Send
> > %>
> >
> > (I of course used @ instead of ATNOSPAM, just trying to keep my email
addy
> > from those email address robots!)
> >
> > Here is the error I received,
> >
> > Error Type:
> > (0x80090020)
> > An internal error occurred.
> > /swvtc/cdotest.asp, line 15
> >
> > Line 15 is, objCDO.Send
> >
> > Thanks,
> > Drew
> >
> >
> > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> > message news:%23i8pYkJgEHA.3916@TK2MSFTNGP11.phx.gbl...
> > > What error? And with what snippet of code?
> > >
> > > Ray at work
> > >
> > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > news:O5FZVDJgEHA.2028@tk2msftngp13.phx.gbl...
> > > >I am trying to setup an error reporting system for our Intranet. We
> have
> > a
> > > > Windows 2000 Server with SQL Server and we have an Exchange Server
> 5.5.
> > I
> > > > need to set it up so I can use CDO mail. I have used CDO before,
but
> > have
> > > > never set it up to work. I built a small little page with some CDO
> code
> > > > on
> > > > it, but I get an error when I try to run it. How can I set this up
to
> > > > send
> > > > mail from the webserver to people in our facility?
> > > >
> > > > Thanks,
> > > > Drew
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: CDO Mail by Aaron

Aaron
Thu Aug 12 14:02:34 CDT 2004

What operating system? What service pack?

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
news:#7eE$0JgEHA.1644@tk2msftngp13.phx.gbl...
> If I use the following code,
>
> <%
> sch = "http://schemas.microsoft.com/cdo/configuration/"
>
> Set cdoConfig = CreateObject("CDO.Configuration")
>
> With cdoConfig.Fields
> .Item(sch & "sendusing") = 2 ' cdoSendUsingPort
> .Item(sch & "smtpserver") = "<enter_mail.server_here>"
> .update
> End With
>
> Set cdoMessage = CreateObject("CDO.Message")
>
> With cdoMessage
> Set .Configuration = cdoConfig
> .From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> .To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> .Subject = "Sample CDO Message"
> .TextBody = "This is a test for CDO.message"
> .Send
> End With
>
> Set cdoMessage = Nothing
> Set cdoConfig = Nothing
> %>
>
> I get this error,
>
> Error Type:
> Microsoft VBScript runtime (0x800A0030)
> Error in loading DLL: 'cdoConfig.Fields'
> /swvtc/cdotest.asp, line 7
>
> Thanks,
> Drew
>
> "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> news:eyu9MvJgEHA.236@tk2msftngp13.phx.gbl...
> > For starters, stop using CDONTS.NewMail. See http://www.aspfaq.com/2026
> for
> > better techniques.
> >
> > --
> > http://www.aspfaq.com/
> > (Reverse address to reply.)
> >
> >
> >
> >
> > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > news:#hLeMqJgEHA.3476@tk2msftngp13.phx.gbl...
> > > Sorry about the lack of details, I was trying to get the question out
> > there
> > > before I left for lunch...
> > >
> > > Here is the code snippet I used.
> > >
> > > <%
> > > Dim objCDO
> > > Set objCDO = Server.CreateObject("CDONTS.NewMail")
> > >
> > > objCDO.To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > objCDO.From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > >
> > > Dim txtSubject
> > > txtSubject = "TESTING CDO Mail"
> > >
> > > objCDO.Subject = "TEST"
> > > objCDO.Body = txtSubject
> > > objCDO.Send
> > > %>
> > >
> > > (I of course used @ instead of ATNOSPAM, just trying to keep my email
> addy
> > > from those email address robots!)
> > >
> > > Here is the error I received,
> > >
> > > Error Type:
> > > (0x80090020)
> > > An internal error occurred.
> > > /swvtc/cdotest.asp, line 15
> > >
> > > Line 15 is, objCDO.Send
> > >
> > > Thanks,
> > > Drew
> > >
> > >
> > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> > > message news:%23i8pYkJgEHA.3916@TK2MSFTNGP11.phx.gbl...
> > > > What error? And with what snippet of code?
> > > >
> > > > Ray at work
> > > >
> > > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > > news:O5FZVDJgEHA.2028@tk2msftngp13.phx.gbl...
> > > > >I am trying to setup an error reporting system for our Intranet.
We
> > have
> > > a
> > > > > Windows 2000 Server with SQL Server and we have an Exchange Server
> > 5.5.
> > > I
> > > > > need to set it up so I can use CDO mail. I have used CDO before,
> but
> > > have
> > > > > never set it up to work. I built a small little page with some
CDO
> > code
> > > > > on
> > > > > it, but I get an error when I try to run it. How can I set this
up
> to
> > > > > send
> > > > > mail from the webserver to people in our facility?
> > > > >
> > > > > Thanks,
> > > > > Drew
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: CDO Mail by Drew

Drew
Thu Aug 12 14:11:03 CDT 2004

Windows 2000 Server SP 4

Thanks,
Drew

"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:e90NH8JgEHA.3612@TK2MSFTNGP12.phx.gbl...
> What operating system? What service pack?
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> news:#7eE$0JgEHA.1644@tk2msftngp13.phx.gbl...
> > If I use the following code,
> >
> > <%
> > sch = "http://schemas.microsoft.com/cdo/configuration/"
> >
> > Set cdoConfig = CreateObject("CDO.Configuration")
> >
> > With cdoConfig.Fields
> > .Item(sch & "sendusing") = 2 ' cdoSendUsingPort
> > .Item(sch & "smtpserver") = "<enter_mail.server_here>"
> > .update
> > End With
> >
> > Set cdoMessage = CreateObject("CDO.Message")
> >
> > With cdoMessage
> > Set .Configuration = cdoConfig
> > .From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > .To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > .Subject = "Sample CDO Message"
> > .TextBody = "This is a test for CDO.message"
> > .Send
> > End With
> >
> > Set cdoMessage = Nothing
> > Set cdoConfig = Nothing
> > %>
> >
> > I get this error,
> >
> > Error Type:
> > Microsoft VBScript runtime (0x800A0030)
> > Error in loading DLL: 'cdoConfig.Fields'
> > /swvtc/cdotest.asp, line 7
> >
> > Thanks,
> > Drew
> >
> > "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> > news:eyu9MvJgEHA.236@tk2msftngp13.phx.gbl...
> > > For starters, stop using CDONTS.NewMail. See
http://www.aspfaq.com/2026
> > for
> > > better techniques.
> > >
> > > --
> > > http://www.aspfaq.com/
> > > (Reverse address to reply.)
> > >
> > >
> > >
> > >
> > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > news:#hLeMqJgEHA.3476@tk2msftngp13.phx.gbl...
> > > > Sorry about the lack of details, I was trying to get the question
out
> > > there
> > > > before I left for lunch...
> > > >
> > > > Here is the code snippet I used.
> > > >
> > > > <%
> > > > Dim objCDO
> > > > Set objCDO = Server.CreateObject("CDONTS.NewMail")
> > > >
> > > > objCDO.To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > > objCDO.From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > >
> > > > Dim txtSubject
> > > > txtSubject = "TESTING CDO Mail"
> > > >
> > > > objCDO.Subject = "TEST"
> > > > objCDO.Body = txtSubject
> > > > objCDO.Send
> > > > %>
> > > >
> > > > (I of course used @ instead of ATNOSPAM, just trying to keep my
email
> > addy
> > > > from those email address robots!)
> > > >
> > > > Here is the error I received,
> > > >
> > > > Error Type:
> > > > (0x80090020)
> > > > An internal error occurred.
> > > > /swvtc/cdotest.asp, line 15
> > > >
> > > > Line 15 is, objCDO.Send
> > > >
> > > > Thanks,
> > > > Drew
> > > >
> > > >
> > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote
in
> > > > message news:%23i8pYkJgEHA.3916@TK2MSFTNGP11.phx.gbl...
> > > > > What error? And with what snippet of code?
> > > > >
> > > > > Ray at work
> > > > >
> > > > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > > > news:O5FZVDJgEHA.2028@tk2msftngp13.phx.gbl...
> > > > > >I am trying to setup an error reporting system for our Intranet.
> We
> > > have
> > > > a
> > > > > > Windows 2000 Server with SQL Server and we have an Exchange
Server
> > > 5.5.
> > > > I
> > > > > > need to set it up so I can use CDO mail. I have used CDO
before,
> > but
> > > > have
> > > > > > never set it up to work. I built a small little page with some
> CDO
> > > code
> > > > > > on
> > > > > > it, but I get an error when I try to run it. How can I set this
> up
> > to
> > > > > > send
> > > > > > mail from the webserver to people in our facility?
> > > > > >
> > > > > > Thanks,
> > > > > > Drew
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: CDO Mail by Aaron

Aaron
Thu Aug 12 14:17:26 CDT 2004

Can you try reinstalling the latest scripting engine 5.6? Maybe that will
reinstate the relevant DLLs...

http://msdn.microsoft.com/downloads/list/webdev.asp

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
news:upxc$AKgEHA.3948@TK2MSFTNGP11.phx.gbl...
> Windows 2000 Server SP 4
>
> Thanks,
> Drew
>
> "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> news:e90NH8JgEHA.3612@TK2MSFTNGP12.phx.gbl...
> > What operating system? What service pack?
> >
> > --
> > http://www.aspfaq.com/
> > (Reverse address to reply.)
> >
> >
> >
> >
> > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > news:#7eE$0JgEHA.1644@tk2msftngp13.phx.gbl...
> > > If I use the following code,
> > >
> > > <%
> > > sch = "http://schemas.microsoft.com/cdo/configuration/"
> > >
> > > Set cdoConfig = CreateObject("CDO.Configuration")
> > >
> > > With cdoConfig.Fields
> > > .Item(sch & "sendusing") = 2 ' cdoSendUsingPort
> > > .Item(sch & "smtpserver") = "<enter_mail.server_here>"
> > > .update
> > > End With
> > >
> > > Set cdoMessage = CreateObject("CDO.Message")
> > >
> > > With cdoMessage
> > > Set .Configuration = cdoConfig
> > > .From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > .To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > .Subject = "Sample CDO Message"
> > > .TextBody = "This is a test for CDO.message"
> > > .Send
> > > End With
> > >
> > > Set cdoMessage = Nothing
> > > Set cdoConfig = Nothing
> > > %>
> > >
> > > I get this error,
> > >
> > > Error Type:
> > > Microsoft VBScript runtime (0x800A0030)
> > > Error in loading DLL: 'cdoConfig.Fields'
> > > /swvtc/cdotest.asp, line 7
> > >
> > > Thanks,
> > > Drew
> > >
> > > "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> > > news:eyu9MvJgEHA.236@tk2msftngp13.phx.gbl...
> > > > For starters, stop using CDONTS.NewMail. See
> http://www.aspfaq.com/2026
> > > for
> > > > better techniques.
> > > >
> > > > --
> > > > http://www.aspfaq.com/
> > > > (Reverse address to reply.)
> > > >
> > > >
> > > >
> > > >
> > > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > > news:#hLeMqJgEHA.3476@tk2msftngp13.phx.gbl...
> > > > > Sorry about the lack of details, I was trying to get the question
> out
> > > > there
> > > > > before I left for lunch...
> > > > >
> > > > > Here is the code snippet I used.
> > > > >
> > > > > <%
> > > > > Dim objCDO
> > > > > Set objCDO = Server.CreateObject("CDONTS.NewMail")
> > > > >
> > > > > objCDO.To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > > > objCDO.From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > > >
> > > > > Dim txtSubject
> > > > > txtSubject = "TESTING CDO Mail"
> > > > >
> > > > > objCDO.Subject = "TEST"
> > > > > objCDO.Body = txtSubject
> > > > > objCDO.Send
> > > > > %>
> > > > >
> > > > > (I of course used @ instead of ATNOSPAM, just trying to keep my
> email
> > > addy
> > > > > from those email address robots!)
> > > > >
> > > > > Here is the error I received,
> > > > >
> > > > > Error Type:
> > > > > (0x80090020)
> > > > > An internal error occurred.
> > > > > /swvtc/cdotest.asp, line 15
> > > > >
> > > > > Line 15 is, objCDO.Send
> > > > >
> > > > > Thanks,
> > > > > Drew
> > > > >
> > > > >
> > > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com>
wrote
> in
> > > > > message news:%23i8pYkJgEHA.3916@TK2MSFTNGP11.phx.gbl...
> > > > > > What error? And with what snippet of code?
> > > > > >
> > > > > > Ray at work
> > > > > >
> > > > > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > > > > news:O5FZVDJgEHA.2028@tk2msftngp13.phx.gbl...
> > > > > > >I am trying to setup an error reporting system for our
Intranet.
> > We
> > > > have
> > > > > a
> > > > > > > Windows 2000 Server with SQL Server and we have an Exchange
> Server
> > > > 5.5.
> > > > > I
> > > > > > > need to set it up so I can use CDO mail. I have used CDO
> before,
> > > but
> > > > > have
> > > > > > > never set it up to work. I built a small little page with
some
> > CDO
> > > > code
> > > > > > > on
> > > > > > > it, but I get an error when I try to run it. How can I set
this
> > up
> > > to
> > > > > > > send
> > > > > > > mail from the webserver to people in our facility?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Drew
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: CDO Mail by Drew

Drew
Thu Aug 12 14:25:38 CDT 2004

I will, but since I am only the "humble programmer" and I don't have any
control over the server, I will have to wait until tommarow, or maybe the
beginning of next week. I really appreciate your time and help on this
issue. If I continue to have problems after reinstalling scripting engine
5.6, I will post again.

Thanks,
Drew

"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:%23aIgaEKgEHA.596@TK2MSFTNGP11.phx.gbl...
> Can you try reinstalling the latest scripting engine 5.6? Maybe that will
> reinstate the relevant DLLs...
>
> http://msdn.microsoft.com/downloads/list/webdev.asp
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> news:upxc$AKgEHA.3948@TK2MSFTNGP11.phx.gbl...
> > Windows 2000 Server SP 4
> >
> > Thanks,
> > Drew
> >
> > "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> > news:e90NH8JgEHA.3612@TK2MSFTNGP12.phx.gbl...
> > > What operating system? What service pack?
> > >
> > > --
> > > http://www.aspfaq.com/
> > > (Reverse address to reply.)
> > >
> > >
> > >
> > >
> > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > news:#7eE$0JgEHA.1644@tk2msftngp13.phx.gbl...
> > > > If I use the following code,
> > > >
> > > > <%
> > > > sch = "http://schemas.microsoft.com/cdo/configuration/"
> > > >
> > > > Set cdoConfig = CreateObject("CDO.Configuration")
> > > >
> > > > With cdoConfig.Fields
> > > > .Item(sch & "sendusing") = 2 ' cdoSendUsingPort
> > > > .Item(sch & "smtpserver") = "<enter_mail.server_here>"
> > > > .update
> > > > End With
> > > >
> > > > Set cdoMessage = CreateObject("CDO.Message")
> > > >
> > > > With cdoMessage
> > > > Set .Configuration = cdoConfig
> > > > .From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > > .To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > > .Subject = "Sample CDO Message"
> > > > .TextBody = "This is a test for CDO.message"
> > > > .Send
> > > > End With
> > > >
> > > > Set cdoMessage = Nothing
> > > > Set cdoConfig = Nothing
> > > > %>
> > > >
> > > > I get this error,
> > > >
> > > > Error Type:
> > > > Microsoft VBScript runtime (0x800A0030)
> > > > Error in loading DLL: 'cdoConfig.Fields'
> > > > /swvtc/cdotest.asp, line 7
> > > >
> > > > Thanks,
> > > > Drew
> > > >
> > > > "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> > > > news:eyu9MvJgEHA.236@tk2msftngp13.phx.gbl...
> > > > > For starters, stop using CDONTS.NewMail. See
> > http://www.aspfaq.com/2026
> > > > for
> > > > > better techniques.
> > > > >
> > > > > --
> > > > > http://www.aspfaq.com/
> > > > > (Reverse address to reply.)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > > > news:#hLeMqJgEHA.3476@tk2msftngp13.phx.gbl...
> > > > > > Sorry about the lack of details, I was trying to get the
question
> > out
> > > > > there
> > > > > > before I left for lunch...
> > > > > >
> > > > > > Here is the code snippet I used.
> > > > > >
> > > > > > <%
> > > > > > Dim objCDO
> > > > > > Set objCDO = Server.CreateObject("CDONTS.NewMail")
> > > > > >
> > > > > > objCDO.To = "drew.laingATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > > > > objCDO.From = "adminATNOSPAMswvtc.dmhmrsas.virginia.gov"
> > > > > >
> > > > > > Dim txtSubject
> > > > > > txtSubject = "TESTING CDO Mail"
> > > > > >
> > > > > > objCDO.Subject = "TEST"
> > > > > > objCDO.Body = txtSubject
> > > > > > objCDO.Send
> > > > > > %>
> > > > > >
> > > > > > (I of course used @ instead of ATNOSPAM, just trying to keep my
> > email
> > > > addy
> > > > > > from those email address robots!)
> > > > > >
> > > > > > Here is the error I received,
> > > > > >
> > > > > > Error Type:
> > > > > > (0x80090020)
> > > > > > An internal error occurred.
> > > > > > /swvtc/cdotest.asp, line 15
> > > > > >
> > > > > > Line 15 is, objCDO.Send
> > > > > >
> > > > > > Thanks,
> > > > > > Drew
> > > > > >
> > > > > >
> > > > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com>
> wrote
> > in
> > > > > > message news:%23i8pYkJgEHA.3916@TK2MSFTNGP11.phx.gbl...
> > > > > > > What error? And with what snippet of code?
> > > > > > >
> > > > > > > Ray at work
> > > > > > >
> > > > > > > "Drew" <dlaing@NOswvtc.state.va.SPAMus> wrote in message
> > > > > > > news:O5FZVDJgEHA.2028@tk2msftngp13.phx.gbl...
> > > > > > > >I am trying to setup an error reporting system for our
> Intranet.
> > > We
> > > > > have
> > > > > > a
> > > > > > > > Windows 2000 Server with SQL Server and we have an Exchange
> > Server
> > > > > 5.5.
> > > > > > I
> > > > > > > > need to set it up so I can use CDO mail. I have used CDO
> > before,
> > > > but
> > > > > > have
> > > > > > > > never set it up to work. I built a small little page with
> some
> > > CDO
> > > > > code
> > > > > > > > on
> > > > > > > > it, but I get an error when I try to run it. How can I set
> this
> > > up
> > > > to
> > > > > > > > send
> > > > > > > > mail from the webserver to people in our facility?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Drew
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>