O'Reilly logo

Sams Teach Yourself ColdFusion® in 21 Days by Charles Mohnike

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required