By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,660 Members | 1,593 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,660 IT Pros & Developers. It's quick & easy.

Sending data from form in an email using ASP

P: 26
I have a page called OES_reg.html that has a form on it. 2 textboxes and 2 checkboxes and a submit button.

This form is read by OES_regreply.asp which takes the information and does 2 things with it
1. displays the information to the user so they can verify
2. sends an email with the information from the form for my records.

my problem lies with the email. Everything is working except that I can't get the body of the email to send the data that it pulls from the form (1 of the textboxes, and both checkboxes)
Code is below:
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Set myMail=CreateObject("CDO.Message")
  3. myMail.Subject="NEW Office Equipment Smash Registration"
  4. myMail.From=request.form("email")
  5. myMail.To=""
  6. myMail.TextBody=response.write(request.form("name")& " ")"has registered for the Office Equipment Smash! fundraiser event.  They registered for the"response.write(" " & request.form("reg") & " ")"event(s)."
  7. myMail.Send
  8. set myMail=nothing
  9. %>
Jun 23 '11 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 979
Hi Joe,

Are you still having trouble with this?

Dr B
Aug 3 '11 #2

P: 26
no i figured it out. thanks
Sep 2 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.