Im not very familiar with asp/vb but im sure this is simple. i am using the following code in my asp and it works fine. i just need to add a subject line that displays “contact form”. can somebody help me out?
<%@ Language=VBScript %>
<%
Response.Buffer = true
Dim myMail, mtextz, mtext01, mtext02, mtext03
mtext01 = "Email:" & Request.Form("email") & vbcrlf
mtextz = mtext01 & mtext02 & mtext03
Set myMail = CreateObject("CDONTS.NewMail")
if request.Form("email") = "" then
myMail.From = "No name"
else
myMail.From = request.Form("email")
end if
myMail.To = "[email protected]"
myMail.MailFormat = 1
myMail.Body = mtextz
myMail.Send
Set myMail = Nothing
Response.write "DynText=E-mail sent successfully"
%>