Forum Moderators: open
IE: Below is a copy of what you submitted:
blah blah blah.
Then I want a copy of what they submitted, and I want to email them a copy of what they submitted.(Thanks for contacting us, this is what you said blah blah blah)
I'm having trouble with the syntax.
Got the form sending and email OK but can't get the content written to the page, or the auto reply.
Does anyone have advice on a nice streamline piece of code that will just write the form content to the page and then send it to me and to the person who filled in the form?
Thanks so much,
Matt
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "#*$!.xx.#*$!.xx"
JMail.Sender = "mywebsite@mywebsite.com"
JMail.Subject = "Submitted from the Web Site"
JMail.AddRecipient "me@myhost.com"
JMail.Priority = 1
JMail.body = "The form was filled out with the following values:" & vbcrlf
Dim el
FOR EACH el IN Request.Form
JMail.appendtext( el & ": " & Request.form(el) & vbcrlf )
NEXT
JMail.Execute
%>