Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 02-13-2004, 06:52 PM   #1 (permalink)
 
True Techie

Join Date: Feb 2004

Posts: 171

Discusman is on a distinguished road

Default Run Time error, plz help

I get this error after I run the program:

ADODB.Fields error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

/test2.asp, line 7

Line 7:
objConfig.Fields(cdoSendUsingMethod)=cdoSendUsingP ort

The complete program as follow:
====================================
Dim objMail
Set objMail = Server.CreateObject("CDO.Message")
Set objConfig = Server.CreateObject("CDO.Configuration")

'Configuration:
objConfig.Fields(cdoSendUsingMethod)=cdoSendUsingP ort
objConfig.Fields(cdoSMTPServer)="localhost"
objConfig.Fields(cdoSMTPServerPort)=25
objConfig.Fields(cdoSMTPAuthenticate)=cdoBasic

'Update configuration
objConfig.Fields.Update
Set objMail.Configuration = objConfig

objMail.From ="admin@hotmail.com"
objMail.To = "user@hotmail.com"
objMail.Subject ="Contact from your site"
objMail.TextBody="This is a test for CDO.message"
objMail.Send

Set objMail=Nothing
Set objConfig=Nothing

Response.Redirect "RegistrationInProcess2.asp"
Discusman is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On