View Single Post
  #5 (permalink)  
Old November 13th, 2003, 04:03 PM
morpheus morpheus is offline
Friend of Wrox
 
Join Date: Aug 2003
Location: Halifax, Nova Scotia, Canada.
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<%

Session("Name") = Request.Form("Name")

    Set MailObj = CreateObject("CDONTS.NewMail")

    strEmail="enter Email here"
    newstr="Name: " & Session("Name") & chr(13) & chr(10)
    MailObj.BodyFormat=1

    MailObj.From=strEmail
    MailObj.Importance=1

    MailObj.Subject="Form Name"
    MailObj.Body=newstr
    MailObj.To="Enter Email"

    MailObj.Send
    Set MailObj = Nothing
    'Session.Abandon
%>
<form METHOD="POST" ACTION="handler.asp" id=form1 name=form1>

I linked my form to Handler.asp, this is the code I used and it works fine. The example above is for a form with one Input box called "name" add other input boxes as needed. I hope this helps



Reply With Quote