Forums
This topic is locked
CDONTS error - Object required: ''
15 Sep 2003 10:43:32 kaz noble posted:
I typed the CDONTS code (see code below) but I gotthis error page after I submitted the button
"Microsoft VBScript runtime error '800a01a8' Object
required: '"
This caused a problem when I put the dynamic variable
e.g. (rsphotos.Fields.Item("photos_name".Value) code.
Can you help?
<%
'CDO Email
If Request.Form("Submit"<>"" Then
Dim objCDO
Dim textbody,phototitle
Set objCDO = Server.CreateObject("CDONTS.NewMail"
textbody = "<html><head></head><body>" &_
"You have recieved a new photo requested<br><br>" &_
"Name : " & request.form("req_fullname" & "<br>" &_
"Phone : " & request.form("req_phone" & "<br>" &_
"Email : " & request.form("req_email" & "<br>" &_
"Intended use : " & request.form("req_use" &
"<br><br>" &_
"Photo title : " &
(rsphotos.Fields.Item("photos_name".Value) & "<br>"
&_
"Available : " &
(rsphotos.Fields.Item("photos_available".Value) &
"<br>" &_
"Format : " &
(rsphotos.Fields.Item("photos_format".Value) & "<br>"
&_
"Type of subject : " &
(rsphotos.Fields.Item("photos_type".Value) & "<br>"
&_
"Part of a group? : " &
(rsphotos.Fields.Item("photos_no_in_group".Value) &
"<br>" &_
"</body></html>"
Replies
Replied 15 Sep 2003 14:43:46
15 Sep 2003 14:43:46 Rene Bandsma replied:
The code seems to be right. I have spend a lot of time working on CDONTS. But after a time i figured out that CDONTS isn't a standard component on Win2003. So if you use this OS, you have to use CDOSYS.
Replied 15 Sep 2003 16:29:06
15 Sep 2003 16:29:06 kaz noble replied:
No I dont use win2003 .. so?
Replied 17 Sep 2003 17:50:52
17 Sep 2003 17:50:52 Dan Berdusco replied:
Bandsma,
Do you mean that CDONTS will not work on a Windows 2003 server?
Do you mean that CDONTS will not work on a Windows 2003 server?
Replied 20 Sep 2003 18:56:45
20 Sep 2003 18:56:45 Rene Bandsma replied:
Well Flexman44, we could not find the cdonts.dll file on the machine. A search on the Knowledge of Microsoft told us that they not longer support CDONTS. CDOSYS is the new way to send e-mail with IIS.
But, it is possible to install the ' old' CDONTS on your win2003 server.
But, it is possible to install the ' old' CDONTS on your win2003 server.
Replied 22 Sep 2003 10:36:34
22 Sep 2003 10:36:34 Lee Diggins replied:
Hi knoble
Is there more to the error message like a line number etc..
Digga
Sharing Knowledge Saves Valuable Time!!!
Is there more to the error message like a line number etc..
Digga
Sharing Knowledge Saves Valuable Time!!!