hello all
i am new to asp and have a simple question, my hosting company sent me to this forum for help.
i have a server document its contact.asp, and i seem to have the code right, but i want to change the way the form sends theh data.
code is below
<%
contactfield1=Request("field1")
contactfield2=Request("field2")
contactfield3=Request("field3")
contactfield4=Request("field4")
mbody = "field1 : "&contactfield1&" | field2 : "&contactfield2&" | field3 : "&contactfield3&" | field4 : "&contactfield4
'email object for cdonts
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Set pmail = pop.secureserver.net("CDONTS.Newmail")
'change the email to your email address
'pmail.From = "admin@pcbaltimore.com"
'pmail.To = "admin@pcbaltimore.com"
'pmail.Subject = " Website Contact enquiry "
'pmail.Body = mbody
'pmail.MailFormat = 0 'mime type
'pmail.BodyFormat = 0 'default value 1 for plain text type
'pmail.Send
'Set pmail=Nothing
'new mail
'DIM Mailer
'email object for CDO Windows 2003
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Website Contact Enquiry"
'change the email to your email address
objMessage.Sender = "admin@pcbaltimore.com"
objMessage.To = "admin@pcbaltimore.com"
objMessage.TextBody = mbody
objMessage.Send
set objMessage=Nothing
response.write("response=ok")
%>
this is how the mail comes in:
field1 : Gerald Smith | field2 : a@a.com | field3 : 207-456-5634 | field4 : My pc freezes when it boots!
i want it to say
name:
email
phone
reason
ANY help would be great. thanks