This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > email





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author email
dprulhiere

2004-08-04, 11:15 pm

I am trying to learn the process of emailing data from a form.

Could someone help me get started

I have built the form with fields like name, address and phone number. There
is a submit button on the bottom of my page. this is as far as I have gotten.

I do not want to store the data in my database. Just want an email sent to me.

The tutorial on DW site gave me the following code...
<! --METEDATA TYPE="LypeLibrary"
FILE="CDONTS.DLL"
VERSION="1.2"
-->

<%
Dim objMessage
Set objMessage = Server.CreateObject("CDONTS.Newmail")
objMessage.Send
Request.Form("emailAddress"),"davidp@redwoodfs.com",Request.Form("subject"),Requ
est.Form("body")
Set objMessage = Nothing
%>

this worked ok for a simple mail but i would like to do several fields to be
included in the body. Dont know what to do.

Any help is appreciated
Thank You



faridea

2004-08-05, 4:14 am

You can do it like this:
<form name="form1" method="post" action="mailto:YOUR EMAIL">
Name:
<input type="text" name="textfield">
<br>
ADD:
<input type="text" name="textfield">
<br>
<input type="submit" name="Submit" value="Submit">
</form>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews