View comments | RSS feed

cfmailparam

Description

Attaches a file or adds a header to an e-mail message. Used within 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" >
  or
  <cfmailparam 
    name = "header-name"
     value = "header-value" >
  ...
</cfmail>

See also

cfftp, cfhttp, cfldap, cfmail, cfpop

Attributes

Attribute Req/Opt Default Description
file
Required if you do not specify name attribute

Attaches file to a message. Mutually exclusive with name attribute.
name
Required if you do not specify file attribute

Name of header. Case-insensitive. Mutually exclusive with file attribute.
value
Optional

Value of header.

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 = "Reply-To" value = "peter@domain.com">
  Please review the new logo. Tell us what you think.
  <cfmailparam file = "c:\work\readme.txt">
  <cfmailparam file = "c:\work\logo.gif">
</cfmail>

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6

Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.

Comments


rmosher315 said on Feb 27, 2004 at 9:29 AM :
A list of possible attributes might be nice...
halL said on Feb 27, 2004 at 9:59 AM :
If you mean cmail attributes, see the cfmail tag reference page.
If you mean header names, you can specify any meaningful SMTP mail header; there should be no ColdFusion-specific limitations.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt22.htm