What kind of mailing script are you using. CDONTS, CDOSYS, JMAIL or ASPMAIL?? Are you also working with a database?
Here is a CDONTS sample with a few options:
Your mail form page, I called it
MyMail.asp
and the ASP mail script, I called it
cdonts_form.asp:
ASP Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
'First lets Dim all the variables we need
Dim MyMail
Dim MyBody
Dim MyEmail
Dim MyFirstname
Dim MyLastname
Dim MySex
Dim MyColour1
Dim MyColour2
Dim MyColour3
Dim MyComments
'Now lets get some values for the variables from the form
MyEmail = Request.Form("email")
MyFirstname = Request.Form("firstname")
MyLastname = Request.Form("lastname")
MySex = Request.Form("sex")
MyColour1 = Request.Form("colour1")
MyColour2 = Request.Form("colour2")
MyColour3 = Request.Form("colour3")
MyComments = Request.Form("comments")
'Now lets build the body of the email from the data in the form
MyBody = "First Name: "& MyFirstName & vbcrlf
MyBody = MyBody & "Last Name: "& MyLastName & vbcrlf
MyBody = MyBody & "Email: "& MyEmail & vbcrlf
MyBody = MyBody & "Sex: "& MySex & vbcrlf & vbcrlf
MyBody = MyBody & "Colour 1: "& MyColour1 & vbcrlf
MyBody = MyBody & "Colour 2: "& MyColour2 & vbcrlf
MyBody = MyBody & "Colour 3: "& MyColour3 & vbcrlf & vbcrlf
MyBody = MyBody & "Comments:" & vbcrlf
MyBody = MyBody & MyComments
'Now lets put the variables and other information we need into the mailing script
Set MyMail = Server.CreateObject ("CDONTS.NewMail")
MyMail.From = MyEmail
MyMail.To = "You@YourEmailAddress.co.uk"
MyMail.Subject = "Test email using CDONTS"
MyMail.Body = MyBody
MyMail.Send
set MyMail=nothing
Response.Write("Your e-mail has been sent")
%>
greetz, toth