IIS and SMTP - SendUsing Error

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > October 2005 > SendUsing Error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SendUsing Error
Philip Llorin

2005-10-13, 6:03 pm


I have the following error message from email.asp page....

CDO.Message.1 (0x80040220)
The "SendUsing" configuration value is invalid.

'---------- My code....
Set MyCDO = Server.CreateObject("CDO.Message")
Set MyCDOConf = Server.CreateObject("CDO.Configuration")
If IsObject (MyCDO) Then
Set Flds = MyCDOConf.Fields
With Flds
.Item("http://Schemas/microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://Schemas/microsoft.com/cdo/configuration/smtpserver") =
"localhost" ' "127.0.0.1"
.update
End With
Set MyCDO.Configuration = MyCDOConf
MyCDO.From = "from@me"
MyCDO.To = "to@you" ' request("to")
MyCDO.Subject = "Registration Complete "
TBdy = "Dear " & Request("whom")
TBdy = TBdy & "Thank you."
MyCDO.TextBody = TBdy
MyCDO.Send
End If
Set MyCDO = nothing
Set MyCDOConf = nothing
'---------------

I have winxp iis 5.1 and smtp installed to my notebook. Is something to do
with my local SMTP?
I had similar code using autoemail.vbs which work fine....

Thank in advance for any help.....

Philip


Ken Schaefer

2005-10-24, 11:03 am

Try:

.Item("http://Schemas.microsoft.com/cdo/configuration/sendusing") = 2

rather than

..Item("http://Schemas/microsoft.com/cdo/configuration/sendusing") = 2

(note the "/" after "schemas" has been changed to a ".")

Cheers
Ken

--

Web: www.adOpenStatic.com
IIS Blog: www.adOpenStatic.com/cs/blogs/ken

"Philip Llorin" <pllorin@hotmail.com> wrote in message
news:uN215m7zFHA.1028@TK2MSFTNGP12.phx.gbl...
:
: I have the following error message from email.asp page....
:
: CDO.Message.1 (0x80040220)
: The "SendUsing" configuration value is invalid.
:
: '---------- My code....
: Set MyCDO = Server.CreateObject("CDO.Message")
: Set MyCDOConf = Server.CreateObject("CDO.Configuration")
: If IsObject (MyCDO) Then
: Set Flds = MyCDOConf.Fields
: With Flds
: .Item("http://Schemas/microsoft.com/cdo/configuration/sendusing") =
2
: .Item("http://Schemas/microsoft.com/cdo/configuration/smtpserver") =
: "localhost" ' "127.0.0.1"
: .update
: End With
: Set MyCDO.Configuration = MyCDOConf
: MyCDO.From = "from@me"
: MyCDO.To = "to@you" ' request("to")
: MyCDO.Subject = "Registration Complete "
: TBdy = "Dear " & Request("whom")
: TBdy = TBdy & "Thank you."
: MyCDO.TextBody = TBdy
: MyCDO.Send
: End If
: Set MyCDO = nothing
: Set MyCDOConf = nothing
: '---------------
:
: I have winxp iis 5.1 and smtp installed to my notebook. Is something to do
: with my local SMTP?
: I had similar code using autoemail.vbs which work fine....
:
: Thank in advance for any help.....
:
: Philip
:
:


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com