PDA

Click to See Complete Forum and Search --> : emailing using cdo


Johnny23
Feb 26th, 2001, 04:51 PM
i have an IIS server i wan tto do emails from and created a form to send an email and when i try to run it i get the following error:

"Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/password/emailforms/TMP65do59dzdo.asp, line 8

Invalid class string "

here is my code:
please tell me what im doing wrong??/

<html>
<head><title>Sending Email with CDONTS</title></head>
<body bgcolor="#FFFFFF">
<%
Dim Email

'Create a new instance of the NewMail object
Set Email = Server.CreateObject("CDONTS.Newmail")

Email.From = "johnm@people.co.nz"


Email.To = "johnm@people.co.nz"

Email.Subject = "Sending Email"

Email.Body = "An email from your server :-)"

'Sets the priority of the message
Email.Priority = 1

Email.Send

Set Email = Nothing
%>
</body>
</html>

jdavison
Feb 27th, 2001, 09:43 AM
make sure you have cdonts installed on your server.

Johnny23
Feb 27th, 2001, 01:14 PM
how do i check if its installed on my server i thought it comes standard with IIS ???...is it on a service pack or something????

jdavison
Feb 27th, 2001, 01:16 PM
It doesnt always install for some reason. I think the file is just cdonts.dll you can search for that. If it is there try unregistering and reregistering it.

Clunietp
Feb 28th, 2001, 08:57 AM
you have to have your SMTP service running and configured as well (I don't think there is too much to configuring it)

jdavison
Feb 28th, 2001, 09:22 AM
nope theres not, really all you have to do is turn it on from my experience

Clunietp
Feb 28th, 2001, 09:41 AM
Now that I think about it, I was trying to use a smart host to connect to the corporate exchange server, that must be what I was thinking of as far as configuration goes.....

You're right then jdavidson, no initial configuration needed, thanks for the clarification

jdavison
Feb 28th, 2001, 09:58 AM
np:)