Forum Moderators: open

Message Too Old, No Replies

Can ASP send a reply to the form sender's email?

A tutorial for a ASP newbie?

         

Googly

4:20 pm on Feb 17, 2003 (gmt 0)



I'm new to ASP and I am wanting to produce a form using asp which will send the form's content to me, redirect to a 'Form Successfully Sent' page and at the same time send a confirmation email reply to the sender's email address.

Are they any tutorials out there explaining a solution which an ASP newbie would understand? or is there any ready made code out there which does this, which i could learn from?

Hope someone can help
Googly

ppg

4:29 pm on Feb 17, 2003 (gmt 0)

10+ Year Member



If your using 'old style' ASP (the only kind I know) on IIS then you should be able to use CDONTS (part of the SMTP service) for sending emails from asp pages, asuming its installed on your server.

Theres some useful stuff on this on 4guysfromrolla:

[4guysfromrolla.com...]

Hope the URL-drop is ok. If not sticky me and I'll send you the link.

Carlitos

7:07 am on Feb 20, 2003 (gmt 0)

10+ Year Member



Try the jmail component from dimac.

rayhogan

5:59 pm on Feb 24, 2003 (gmt 0)

10+ Year Member



Hi,

You'll want to have a separate page process the submisison of the ASP page. In there, you can use one of many email mechanisms (I've used Jmail, but it depends on your host company).

You will need to learn about the request object and how it is used for retrieving the values entered in the fields of the submitting page.

You will also want to know about response.redirect for sending them elsewhere. The BIG snafu with redirect is that you must make sure that not even 1 character be sent back to the browser before executing that instruction ... not even the first opening angle bracket before html.

Ray

RossWal

6:38 pm on Feb 24, 2003 (gmt 0)

10+ Year Member




The BIG snafu with redirect is that you must make sure that not even 1 character be sent back to the browser before executing that instruction ... not even the first opening angle bracket before html.

fyi, Response.Buffer=True will help with this, and it can be a good idea anyway. At some point (ASP 3.0 or IIS 5.0?) the default was changed from false to true.