Yesup
 
 

Yamabay Knowledge Base

 

The "SendUsing" configuration value is invalid

Previous Article Back to TOC Next Article

If you are using CDOSYS cdo.message and cdo.configuration to send e-mail, but you get an error message: The "SendUsing" configuration value is invalid, please be sure you have the followings lines in italic and underline written as indicated:


<%
sch = "http://schemas.microsoft.com/cdo/configuration/"

Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = ""
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "from@me.com"
.To = "to@me.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

Yesup
Top Stories Travel Movies Gift Ideas Free Software Games