home *** CD-ROM | disk | FTP | other *** search
- <%@ Language="vbscript"%>
- <HTML>
- <HEAD>
- <TITLE>ASP Wizard 1.1C - (Your Title)</TITLE>
- </HEAD>
- <Center><H1><Font Color="#000000">ASP Wizard 1.1C - (Your Title)</Font></H1></Center>
- <%If Request.ServerVariables("REQUEST_METHOD") = "POST" Then%>
- <BODY bgColor="#ffffff" Background="">
- <p Align="center"><FONT Face="Arial, geneva" size="5"> Email Form</FONT></p>
- <%
- Dim Name
- Dim SenderEmail
- Dim Subject
- Dim Recipient
- Dim Body
-
- Name = Request.Form("name")
- SenderEmail = Request.Form("email")
- Subject = "Regarding " & Request.Form ("subject")
- Recipient = Request.Form("recipient")
- Body = Request.Form("body")
-
- Set ObjMail = Server.CreateObject ("ObjMail.SMTPMail")
- ' Get the Senders mailbox from a form.
- ObjMail.FROM = Senderemail
- ' Get the Subject from a form.
- ObjMail.Subject = Subject
- ' Get the recipients mailbox from a form.
- ObjMail.TO Recipient
-
- ' The body property is both read and write.
- ' If you want to append text to the body you can
- ' use Cdonts.Body = Cdonts.Body & "Hello world! "
- ObjMail.Body = Body
-
- ' Send it...
- ObjMail.Send
- Set ObjMail= Nothing
- %>
- <center>
- <FONT Face="Arial, geneva" size="3">Your email has been sent to<%=Recipient%><BR>
- </FONT>
- </center>
- <%Else%>
- <FORM Method="post" Action="fucku_CDonts.asp">
- <TABLE border="1" cellpadding="0" cellspacing="0" Align="center" borderColor="#000000" Background="" >
- <TR>
- <TD colspan="2" Align="middle">Complete this form and click the submit-button. We will answer your questions as soon as possible.</TD>
- </TR>
- <TR>
- <TD>Your name</TD><TD><INPUT size="25" name="name"
- ></TD>
- </TR>
- <TR>
- <TD>Your email</TD><TD><INPUT size="25" name="email"
- ></TD>
- </TR>
- <TR>
- <TD>Recipient email</TD><TD><INPUT size="25" name="recipient"
- ></TD>
- <TR>
- <TD>State your business</TD><TD><select name="subject" size="1">
- <option Value="help" selected>help
- <option Value="tips">tips
- <option Value="other">other</option>
- </select>
- </TD></TR>
- <TR>
- <TD>Enter your question</TD><TD><TEXTAREA name=body rows=15 wrap=PHYSICAL cols=40></TEXTAREA></TD>
- </TR>
- <TR rowspan="2">
- <TD ><INPUT Type="submit" Value="Submit"></TD>
- </TR>
- </TABLE>
- </FORM>
- <%End IF%>
- </BODY>
- </HTML>
-