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

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.

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 is mutually exclusive with the FILE attribute.

VALUE

Optional. Indicates the value of the header.