| Contents > CFML Reference > ColdFusion Tags > cfmailparam |
|
|
|
|
||
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.
Forms tags, Internet Protocol tags
<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>
cfmail, cfmailpart, cfftp, cfhttp, cfldap, cfpop
ColdFusion MX 6.1: Added the type attribute.
Attribute |
Req/Opt |
Default |
Description |
|---|---|---|---|
file |
Required if you do not specify |
|
Attaches file to a message. Mutually exclusive with |
type |
Optional |
|
The MIME media type of the part. Can be a valid MIME media type or one of the following:
Note: For a list of all registered MIME media types, see www.iana.org/assignments/media-types/ |
name |
Required if you do not specify |
|
Name of header. Case-insensitive. Mutually exclusive with |
value |
Optional |
|
Value of the header. |
<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>
|
|
||
| Contents > CFML Reference > ColdFusion Tags > cfmailparam |
|
|
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pb2.htm
Comments
Didgiman said on Feb 16, 2004 at 6:07 AM :