CFMAILPARAM

CFMAILPARAM can either attach a file or add a header to a message. If you use CFMAILPARAM, it is nested within a CFMAIL tag. You can use more than one CFMAILPARAM tags within a CFMAIL tag in order to attach one or more files and headers.

See also CFMAIL.

Syntax

<CFMAIL
    TO="recipient"
    SUBJECT="msg_subject"
    FROM="sender"
    …more attibutes…
>
    <CFMAILPARAM
       FILE="file-name"
    >
    or
    <CFMAILPARAM
       NAME="header-name"
       VALUE="header-value"
    >
    …
</CFMAIL>
FILE

Required if you do not specify the NAME attribute. Attaches the specified file to the message. This attribute is mutually exclusive with the NAME attribute.

NAME

Required if you do not specify the FILE attribute. Specifies the name of the header. Header names are case insensitive. This attribute ...

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.