CFMAILPARAM |
|
 |
Description
|
Attaches a file or adds a header to an e-mail message. Can only be used in the cfmail tag. You can use more than one cfmailparam tag within a cfmail tag.
|
|
Category
|
Forms tags, Internet Protocol tags
|
|
Syntax<cfmail
to = "recipient"
subject = "msg_subject"
from = "sender"
...more attributes... >
<cfmailparam
file = "file-name"
type ="media type">
or
<cfmailparam
name = "header-name"
value = "header-value" >
...
</cfmail>
|
|
See also
|
cfmail, cfmailpart, cfftp, cfhttp, cfldap, cfpop
|
|
History
|
ColdFusion MX 6.1: Added the type attribute.
|
|
|
Example<h3>cfmailparam Example</h3>
<p>This view-only example uses cfmailparam to attach files and add header to
a message.</p>
<cfmail from = "peter@domain.com" To = "paul@domain.com"
Subject = "See Important Attachments and Reply">
<cfmailparam name = "Importance" value = "Hich">
Please review the new logo. Tell us what you think.
<cfmailparam file = "c:\work\readme.txt" type="text/plain">
<cfmailparam file = "c:\work\logo.gif" type="image/gif">
</cfmail>
|