Maximus007
Technical User
I am try to have some fields send via e-mail when a form is submitted. the code is in the confirmation page. Can anyone give me some idea on why it's not sending an e-mail?
thank you
<%
Dim strEscalation_Type, strCae_Name, strSupervisor_Name
strEscalation_Type = Trim(Request.form("Escalation_Type"))
strCae_Name = Trim(Request.form("Cae_Name"))
strSupervisor_Name = Trim(Request.form("Supervisor_Name"))
if (strEscalation_type <> "" and strCae_Name <> "" and strSupervisor_Name <> "") Then
Dim myMail
Set myMail=CreateObject("CDO.Message")
myMail.Subject= "Sending email with CDO"
myMail.From= "Form" & strEscalation_Type
myMail.To= "martin, ralph" & "ralph_martin@cable.comcast.com"
myMail.TextBody= "This is a message for you." & strCae_Name
myMail.Send
end if
%>
thank you
<%
Dim strEscalation_Type, strCae_Name, strSupervisor_Name
strEscalation_Type = Trim(Request.form("Escalation_Type"))
strCae_Name = Trim(Request.form("Cae_Name"))
strSupervisor_Name = Trim(Request.form("Supervisor_Name"))
if (strEscalation_type <> "" and strCae_Name <> "" and strSupervisor_Name <> "") Then
Dim myMail
Set myMail=CreateObject("CDO.Message")
myMail.Subject= "Sending email with CDO"
myMail.From= "Form" & strEscalation_Type
myMail.To= "martin, ralph" & "ralph_martin@cable.comcast.com"
myMail.TextBody= "This is a message for you." & strCae_Name
myMail.Send
end if
%>