Evaluation

susanm
susanm Community Member Posts: 32
<%@ Language=VBScript %><%' the variable names on the right in the quotes correspond to the variable names you created in Lectora' the variable names on the left do not have to agree with the names on the right but it is a good conventionq1=request.form("q1")q2=request.form("q2")q3=request.form("q3")q4=request.form("q4")q5=request.form("q5")' The variable name below outside of the quotes must agree with the variable name on the left abovestrBody="" strBody=strBody & "q1: " & q1 & vbCrLf strBody=strBody & "q2: " & q2 & vbCrLf strBody=strBody & "q3: " & q3 & vbCrLf strBody=strBody & "q4: " & q4 & vbCrLfstrBody=strBody & "q5: " & q5 & vbCrLf ' Now to send the emailDim objCDO' use the line below for IIS5 delete the line if using IIS6Set objCDO = Server.CreateObject("CDONTS.NewMail")' use the line below for IIS6 delete the line if using IIS5Set objCDO = Server.CreateObject("CDO.Message")' put in whatever you want for the subject lineobjCDO.subject="substitute your subject here"' put your email address in the line belowobjCDO.From="[email protected]"' put your email address in the line belowobjCDO.To="[email protected]"' use objCDO.Body for IIS5 delete the line if using IIS6objCDO.Body = strBody' use objCDO.TextBody for IIS6 delete the line if using IIS5objCDO.TextBody = strBodyobjCDO.Send Set objCDO = Nothing %>