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" or "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 ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.