473,807 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using a web form to send details to an e-mail

Hi,

I have just created a web form that should send its
details to an e-mail address. The problem is that I was
working on the pretense that CDONTS would suffice my
needs.

However, after working with it for a few days (and
nights), it finally came to my attention that it will
only send 'To, From, Subject, Body' information and not
the 20 or so other form fields I need to send.

Ideally, my form will send a basic formatted e-mail to
someone. At the very least, it needs to be sent in an
ordered fashion so that it makes sense to the end user.

In a nutshell, I have 20 text fields and 6 drop down
menus on my web form. I need some code to take this
information and send it to an e-mail address in a
readable format.

Can this be done? Can anyone please help me.

I am using IIS4 on NT Server 4 with Option Pack. I am
also using Exchange 5.5 for our mail server.

Regards,
Jul 19 '05 #1
2 2315

"Andrew Williams" <as*@ass.com> wrote in message
news:3c******** *************** *****@phx.gbl.. .
Hi,

I have just created a web form that should send its
details to an e-mail address. The problem is that I was
working on the pretense that CDONTS would suffice my
needs.

You're right. Use CDO instead of CDONTS unless you're stuck on an NT 4
Server.
However, after working with it for a few days (and
nights), it finally came to my attention that it will
only send 'To, From, Subject, Body' information and not
the 20 or so other form fields I need to send.
What else did you expect? (Aside from CC, BCC, which are included, and the
ability to add your own headers, which you also can do.)

Ideally, my form will send a basic formatted e-mail to
someone. At the very least, it needs to be sent in an
ordered fashion so that it makes sense to the end user.
Create a string from the form values and then make that string the body of
the message.

In a nutshell, I have 20 text fields and 6 drop down
menus on my web form. I need some code to take this
information and send it to an e-mail address in a
readable format.

Do you know how to do something like:

Response.Write "The value of text field #1 is " & Request.Form("t ext1")

If so, it's all the same concept. Do

strTheEmailBody = "The value of text field #1 is " & Request.Form("t ext1")

Can this be done? Can anyone please help me.
Yes

I am using IIS4 on NT Server 4 with Option Pack. I am
also using Exchange 5.5 for our mail server.


Oh, you are on an NT Server. Okay, continue to use CDONTS. It will work
just fine.

Ray at work
Jul 19 '05 #2
Could you not gather all the form field values and just include them in the
body information?
I am using a form/several forms with up to 50 fields - check boxes drop dwn
lists etc. On Win NT CDONTS no problems...
Or am I missing something?

"Andrew Williams" <as*@ass.com> wrote in message
news:3c******** *************** *****@phx.gbl.. .
Hi,

I have just created a web form that should send its
details to an e-mail address. The problem is that I was
working on the pretense that CDONTS would suffice my
needs.

However, after working with it for a few days (and
nights), it finally came to my attention that it will
only send 'To, From, Subject, Body' information and not
the 20 or so other form fields I need to send.

Ideally, my form will send a basic formatted e-mail to
someone. At the very least, it needs to be sent in an
ordered fashion so that it makes sense to the end user.

In a nutshell, I have 20 text fields and 6 drop down
menus on my web form. I need some code to take this
information and send it to an e-mail address in a
readable format.

Can this be done? Can anyone please help me.

I am using IIS4 on NT Server 4 with Option Pack. I am
also using Exchange 5.5 for our mail server.

Regards,

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
19366
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is able to fill that one out just fine. The second form is multipart/form-data. Unfortunately, I haven't been able to fill that out in a way that makes the server happy. I set up a copy of this form at my web site so that I could see exactly what a...
1
1628
by: Raichu | last post by:
Hi All, I'm new to VC++.net and I searched through the forums and couldn't find anything related to this. I'm trying to send a flat file from a VC++.net program to a PHP file residing on a webserver. I know you can call a website from VC++.net, but I'm not sure how to send a physical file over the internet. I mean is there a way to mimic a normal html form to upload a file, using VC++.net?
8
2048
by: Martin | last post by:
I hope not, but, I think the answer to this question is "it can't be done". Northwind sample database. Orders form. Go to a new record. Select a customer in "Bill To:" Don't enter any products whatsoever. Now click or page up/down away from this new record. You just created a new order without a single item having been ordered. Not something a user should be able to do.
5
10403
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said they need to consume this web service using HTTP. The developer's IDE is Notepad. Yeah, weird I know. How is this done? I guess if I can get it to run ASP, IDE independant, that should make them happy. Any references you can point me to?
1
2516
by: giesss | last post by:
I have been searching for a way to call a third party emailer to send mass emails from MS Access. Outlook thinks it is spam and asks the user to verify every email. I need to send many emails with an attachment without user input after the "Send email Button is clicked" I mainly need to know about how to call and insert data into the To: the Bcc: the SubjectLine: the Body: Currently I am using code similar to this. Private Sub...
2
1550
by: Roo | last post by:
Hi - apologies for ASP newbie question. I have a form which has two fields, "details" and "score", the first of which can be edited by the user and the second of which is hidden. When "details" is updated, I need to update "score" and then call a javascript routine to do some client-side calculations using "score". I was going to use ASP to search a text file containing the corresponding values (there are thousands) of "details" and...
1
2343
by: newToAjax | last post by:
I have created an ajax application which retrievs an xml file and fills in the tab fields on the form.The code works fine in IE while its does not in Mozilla. Can you please let me know if i have to install some plugins to use XPATH? <html> <head> <title>SilverLine </title> <link rel="stylesheet" href="example.css" TYPE="text/css" MEDIA="screen"> <script type="text/javascript"> /* Optional: Temporarily hide the "tabber" class so it...
21
34452
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
2
3174
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if i change something in php file using in ajax function.it not refreshed,means its shows the previous result it not get updated.i can't understand whats the prob.this is the code i m using: <? include("config.inc.php"); //error_reporting(0); ...
3
2844
by: jerry101 | last post by:
Okay, so I have no knowledge with ASP and I was asked to look at this contact form because the emails aren't delivering. I'll post the whole page of code, because I am unsure at what is what really apart from the common knowledge stuff i.e. the send email to etc, but this wasn't designed by me so I am unsure if it's wrong or right.. If someone could let me know whether there's a problem with the code or if the problem may lay elsewhere...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10628
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5547
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
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 we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.