|
 |
asp_cdo thread: Problem sending with CDONTS.Newmail
Message #1 by dean@d... on Sun, 19 Aug 2001 07:50:26
|
|
Hi,
Have just setup up with NT4 Server and IIS4 so that I can test an auto
email using CDONTS.Newmail. When running I'm getting this error:
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object: 'CDONTS.NewMail'
/newsletter_sent.asp, line 38
And here is the code from the page:
<%
Dim objMail
while not rsmail.eof
' Create a mail object
set objMail = CreateObject("CDONTS.NewMail")
objMail.from = "dean@d..."
objMail.To = rsmail("emailadd")
objMail.subject = "email_header"
objMail.bodyFormat = 1
objMail.Body = "email_content"
objMail.send
set objMail=nothing
rsmail.movenext
wend
%>
What's not right? I'm suspecting for some reason I'm actually missing the
whole Active X component or there is something wrong with the
configuration of the IIS more than a coding error.
You help is GREATLY appreciated. :-)
Dean
Message #2 by philip.moh@a... on Mon, 20 Aug 2001 17:17:09 +0800
|
|
You need to have the SMTP setup
-----Original Message-----
From: dean@d... [SMTP:dean@d...]
Sent: Sunday, August 19, 2001 3:50 PM
To: ASP CDO
Subject: [asp_cdo] Problem sending with CDONTS.Newmail
Hi,
Have just setup up with NT4 Server and IIS4 so that I can test an
auto
email using CDONTS.Newmail. When running I'm getting this error:
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object: 'CDONTS.NewMail'
/newsletter_sent.asp, line 38
And here is the code from the page:
<%
Dim objMail
while not rsmail.eof
' Create a mail object
set objMail =3D CreateObject("CDONTS.NewMail")
objMail.from =3D "dean@d..."
objMail.To =3D rsmail("emailadd")
objMail.subject =3D "email_header"
objMail.bodyFormat =3D 1
objMail.Body =3D "email_content"
objMail.send
set objMail=3Dnothing
rsmail.movenext
wend
%>
What's not right? I'm suspecting for some reason I'm actually
missing the
whole Active X component or there is something wrong with the
configuration of the IIS more than a coding error.
You help is GREATLY appreciated. :-)
Dean
|
|
 |