Chapter 1: ColdFusion Tags
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="support@allaire.com"), 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="support@allaire.com") 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#".
135
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers