I am getting the following error when an email is sent.
CDO.Message.1 error '8004020c'
At least one recipient is required, but none were found.
/forms/Confirmation.asp, line 88
Line 88 is objCdoSys.Send()
Dim objCdoSys, cdoConf, cdoFlds
If request.form("Escalation_Type")="Eta" then
objCdoSys.To = "
[email protected]"
elseif request.form("Escalation_Type")="HDTV" then
objCdoSys.To = "
[email protected]"
elseif request.form("Escalation_Type")="Supervisor" then
objCdoSys.To = "
[email protected]"
end if
Set objCdoSys = Server.CreateObject("CDO.Message")
Set cdoConf = Server.CreateObject("CDO.Configuration")
set cdoFlds = cdoConf.Fields
With cdoFlds
.Item("http://schemas.microsoft.com/cdo/co...ation/sendusing") = 2 '1 is default and means server on local machine, 2 means remote server
.Item("http://schemas.microsoft.com/cdo/co...tion/smtpserver") ="my.domain.com" 'here is the remote server we want to send through
.Update
End With
Set objCdoSys.Configuration = cdoConf
objCdoSys.From ="
[email protected]"
'objCdoSys.To = "
[email protected]"
objCdoSys.Subject = "A form was just sent to you!"
objCdoSys.TextBody = "Please click here:
[email protected] "
objCdoSys.Fields("urn:schemas:httpmail:importance" ).Value = 1
objCdoSys.Fields.Update()
objCdoSys.Send()
Set objCdoSys = Nothing