SendUsing Error
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS and SMTP > SendUsing Error




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    SendUsing Error  
Philip Llorin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-13-05 11: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







[ Post a follow-up to this message ]



    Re: SendUsing Error  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 04:03 PM

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
:
:







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:51 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register