E-mail with ASP

Question

I'd like to build a page that has a form on it. Nothing fancy, just name, address, phone, e-mail, and some other quick pieces of data. I'd like to take that form and have it e-mailed to a static address - i.e. - the address will not be changing in the forseeable future. The information from the form doesn't need to be saved ,so it doesn't need to be put in a database or anything else, simply sent to an address. How do I do this?

Answer 1

You can use action element from the form tag to do that such as the following.

<FORM ENCTYPE="TEXT/PLAIN" METHOD=POST ACTION="MAILTO:abcd@abc.com?subject=blah blah">

Answer 2

IF you want to do all kinds of neato stuff with an Email you can use the CDONTSMail object.

Check MSDN Library for more info. But it allows you to set pretty much any attribute of an email that you'd like (To, From, Title, CC, Priority, Body, ETC...)

 

E-mail with ASP

Question

I'd like to build a page that has a form on it. Nothing fancy, just name, address, phone, e-mail, and some other quick pieces of data. I'd like to take that form and have it e-mailed to a static address - i.e. - the address will not be changing in the forseeable future. The information from the form doesn't need to be saved ,so it doesn't need to be put in a database or anything else, simply sent to an address. How do I do this?

Answer 1

You can use action element from the form tag to do that such as the following.

<FORM ENCTYPE="TEXT/PLAIN" METHOD=POST ACTION="MAILTO:abcd@abc.com?subject=blah blah">

Answer 2

IF you want to do all kinds of neato stuff with an Email you can use the CDONTSMail object.

Check MSDN Library for more info. But it allows you to set pretty much any attribute of an email that you'd like (To, From, Title, CC, Priority, Body, ETC...)