home *** CD-ROM | disk | FTP | other *** search
- <!--- This view-only example shows the use of CFMAIL --->
- <HTML>
- <HEAD>
- <TITLE>CFMAIL Example</TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <H3>CFMAIL Example</H3>
- <P>This view-only example shows the use of CFMAIL. If your CFAS mail
- settings are configured successfully and the comments are removed,
- you will be able to use this code to send simple email.
- <!--- <CFIF IsDefined("form.mailto")>
- <CFIF form.mailto is not "" AND form.mailfrom is not "" AND form.Subject is not "">
- <CFMAIL TO="#form.mailto#"
- FROM="#form.mailFrom#"
- SUBJECT="#form.subject#">
- This message was sent by an
- automatic mailer built with CFMAIL:
- ====================================================
- #form.body#
- </CFMAIL>
- <H3>Thank you</H3>
- <P>Thank you, <CFOUTPUT>#mailfrom#: your message, #subject#, has
- been sent to #mailto#</CFOUTPUT>.
- </CFIF>
- </CFIF>
- <P>
- <FORM ACTION="cfmail.cfm" METHOD="POST">
- <PRE>
- TO: <INPUT TYPE="Text" NAME="MailTo">
- FROM: <INPUT TYPE="Text" NAME="MailFrom">
- SUBJECT: <INPUT TYPE="Text" NAME="Subject">
- <hr>
- MESSAGE BODY:
- <TEXTAREA NAME="Body" COLS="40" ROWS="5" WRAP="VIRTUAL"></TEXTAREA>
- </PRE>
- <!--- establish required fields --->
- <INPUT TYPE="Hidden" NAME="MailTo_required" VALUE="You must enter a recipient for this message">
- <INPUT TYPE="Hidden" NAME="MailFrom_required" VALUE="You must enter a sender for this message">
- <INPUT TYPE="Hidden" NAME="Subject_required" VALUE="You must enter a subject for this message">
- <INPUT TYPE="Hidden" NAME="Body_required" VALUE="You must enter some text for this message">
-
- <P><INPUT TYPE="Submit" NAME="">
- </FORM> --->
-
- </BODY>
- </HTML>
-