Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO trouble

Status
Not open for further replies.

travisbrown

Technical User
Dec 31, 2001
1,016
Can anyone see anything wrong with this code? I get

"ADODB.Fields error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another."

on this line: .Item(cdoSendUsingMethod) = 2

Code:
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = 2
.Item(cdoSMTPServer) = "mail.telus.net"
'.Item(cdoSMTPAuthenticate) = 1
'.Item(cdoSendUsername) = "<enter_username_here>"
'.Item(cdoSendPassword) = "<enter_password_here>"
.Update
End With

Set myMail=CreateObject("CDO.Message")
myMail.Subject		= subject
myMail.From		= sender
myMail.To		= recipient
myMail.HTMLBody 	= body 
myMail.Send
set myMail		= nothing
 
My first guess is that your page doesn't know the value of the constant cdoSendUsingMethod
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top