Chapter 1: ColdFusion Tags
137
TIMEOUT
Optional. The number of seconds to wait before timing out the connection to the
SMTP server.
Example
<!--- This view-only example shows the use of CFMAIL --->
<HTML>
<HEAD>
<TITLE>CFMAIL Example</TITLE>
</HEAD>
<BODY bgcolor=silver>
<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> --->
...
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...