Chapter 1: ColdFusion Tags
135
CFMAIL
CFMAIL allows you to send email messages via an SMTP server.
See also
CFMAILPARAM
.
Syntax
<CFMAIL TO="recipient"
FROM="sender"
CC="copy_to"
BCC="blind_copy_to"
SUBJECT="msg_subject"
TYPE="msg_type"
MAXROWS="max_msgs"
MIMEATTACH="path"
QUERY="query_name"
GROUP="query_column"
GROUPCASESENSITIVE="yes/no"
STARTROW="query_row"
SERVER="servername"
PORT="port_ID"
MAILERID="headerid"
TIMEOUT="seconds">
TO
Required. The name of the recipient(s) of the email message. This can be either a
static address (as in, TO="[email protected]"), a variable that contains an
address (such as, TO="#Form.Email#"), or the name of a query column that
contains address information (such as, TO="#EMail#"). In the latter case, an
individual email message is sent for every row returned by the query.
FROM
Required. The sender of the email message. This attribute may be either static
(e.g., FROM="[email protected]") or dynamic (as in,
FROM="#GetUser.EMailAddress#").
CC
Optional. Indicates additional addresses to copy the email message to; "CC"
stands for "carbon copy."
BCC
Optional. Indicates additional addresses to copy the email message without listing
them in the message header. "BCC" stands for "blind carbon copy."
SUBJECT
Required. The subject of the mail message. This field may be driven dynamically
on a message-by-message basis. For example, if you want to do a mailing that
updates customers on the status of their orders, you might use a subject attribute
like SUBJECT="Status for Order Number #Order_ID#".
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...