473,473 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sending data from form in an email using ASP

26 New Member
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="JoeJr@BuffaloPrinting.com"
  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. %>
  10.  
Jun 23 '11 #1
2 2119
DrBunchman
979 Recognized Expert Contributor
Hi Joe,

Are you still having trouble with this?

Dr B
Aug 3 '11 #2
Joe Farage
26 New Member
no i figured it out. thanks
Sep 2 '11 #3

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

Similar topics

4
by: James | last post by:
How can I take my form data and send it as an email using my SMTP server located @ my ISP using PHP ? my form has several fields: TO: this is a drop down list FROM: this is a drop down...
10
by: Jim H | last post by:
I have a UDP socket that sends out a request on a multicast socket and waits for a response. This client is not listening on a multicast IP but the local IP. The server (UNIX) responds to the...
6
by: Rani | last post by:
hi guys I need to send an email from a form the form is collecting data from a user and then submits it to us. I would like the email to appear in the following format Name: Email: Etc. all I...
2
by: jakub.bauer | last post by:
Hi, I have a table with in MS SQL database. A table consist a list of items bought by a customer with, item prices, item nubers etc. I would like to send an email with a list of items in the...
2
by: Jonathan Woods | last post by:
Hi there, I have encountered problem of losing data sending over internet using web service. I consume web service that connected Oracle Database. I submit 687 SOAP Messages to 1 Web Method...
10
by: James | last post by:
Hello, as this falls under both VB and PHP I have posted this into two newsgroups (this is the first time I've done this so if it is mucked up then I'm sorry). Anyway I want to make some simple...
6
by: Boldgeek | last post by:
I am trying to develop an app that will allow automatic updating of a web form which uses multipart/form-data enctype (as it MIGHT be sending an image) I have an example form, which when...
1
by: rciiipo | last post by:
I have a question that is similar to a thread started by pauljhorak; however, my needs are a bit different / possibly more complicated. I have several files stored as outlook items (.msg). I...
4
by: ssmeshack85 | last post by:
Hai there, Check whether I configure it correctly... myMsg.To.Add("some1@hotmail.com"); myMsg.From = new MailAddress("admin@emailserver.com"); smtp.Host = "mail.emailserver.com";...
0
AutumnsDecay
by: AutumnsDecay | last post by:
Perhaps you've wanted to create a 'Request a Quote' or a 'Contact Us' form for a client you have, but didn't know how to get the information from the user to your client. Using PHP's mail()...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.