Chapter 1: ColdFusion Tags
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.
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#"
</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:
FROM:
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>
...
FROM="#form.mailFrom#"
SUBJECT="#form.subject#">
This message was sent by an
automatic mailer built with CFMAIL:
====================================================
#form.body#
<INPUT TYPE="Text" NAME="MailTo">
<INPUT TYPE="Text" NAME="MailFrom">
--->
137
If your CFAS mail
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?