Forum Moderators: open

Message Too Old, No Replies

Jmail syntax

making jmail send/write a copy of the email

         

Matt_Scales

5:28 am on Jul 18, 2006 (gmt 0)

10+ Year Member



Hi I'm trying to get jmail to not only send the form as an email but write the contents of form to a page.

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

%>

Matt_Scales

1:56 am on Jul 21, 2006 (gmt 0)

10+ Year Member



Is anyone out there using Jmail? Could really use a little help on this and no one seems to respond on the Jmail forum at Dimac either.

Thanks,
Matt