Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Using a web form to send details to an e-mail

Reply
Thread Tools

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

 
 
Andrew Williams
Guest
Posts: n/a
 
      09-08-2003
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,


 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      09-08-2003

"Andrew Williams" <(E-Mail Removed)> wrote in message
news:3c2901c37619$6af077b0$(E-Mail Removed)...
> 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("text1")

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

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



>
> 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


 
Reply With Quote
 
 
 
 
Martin
Guest
Posts: n/a
 
      09-08-2003
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" <(E-Mail Removed)> wrote in message
news:3c2901c37619$6af077b0$(E-Mail Removed)...
> 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,
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I update data using a Details view without using an AccessDataSource DC ASP .Net 0 08-30-2007 02:35 PM
Login using NT login details from web form problems DavidADEW ASP .Net 2 09-01-2006 03:10 PM
Show Details/Hide Details link button =?Utf-8?B?Sm9l?= ASP .Net 1 03-13-2006 04:51 PM
javascript form action = send form details to ASP page iam247@gmail.com Javascript 2 08-07-2005 08:16 AM
Warning "Re: Your details" & "Re: My details" Joe Lee Computer Support 3 05-17-2004 05:08 PM



Advertisments