S
Shona
Hi
I have the following script on my confirmation page. It all works fine and
when I receive a mail it says it From what ever has been typed in the field
Name. However what I would also like it to put is the persons surname as
well with a space in between.
<%
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.To = "(e-mail address removed)"
objCDOMail.From = FP_SavedFields("Name")
objCDOMail.Subject = FP_SavedFields("Results")
strBody = strBody & "Name: " & FP_SavedFields("Name") & VbCrLf
strBody = strBody & "Surname: " & FP_SavedFields("Surname") & VbCrLf
objCDOMail.Body = strBody
objCDOMail.BodyFormat = 1
objCDOMail.MailFormat = 1
objCDOMail.Send
Set objCDOMail = Nothing
%>
Hope someone has the answer for me.
Cheers Shona
I have the following script on my confirmation page. It all works fine and
when I receive a mail it says it From what ever has been typed in the field
Name. However what I would also like it to put is the persons surname as
well with a space in between.
<%
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.To = "(e-mail address removed)"
objCDOMail.From = FP_SavedFields("Name")
objCDOMail.Subject = FP_SavedFields("Results")
strBody = strBody & "Name: " & FP_SavedFields("Name") & VbCrLf
strBody = strBody & "Surname: " & FP_SavedFields("Surname") & VbCrLf
objCDOMail.Body = strBody
objCDOMail.BodyFormat = 1
objCDOMail.MailFormat = 1
objCDOMail.Send
Set objCDOMail = Nothing
%>
Hope someone has the answer for me.
Cheers Shona