Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfmailparam options?

Status
Not open for further replies.

dallasweb

Programmer
Jan 4, 2001
45
US
What option are available in the cfmailparam tag?

<cfmailparam name=&quot;Header&quot; value=&quot;#Header_value#&quot;>

Does anyone have a list of all options for this tag?

Thanks in advance
 
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=&quot;recipient&quot;
SUBJECT=&quot;msg_subject&quot;
FROM=&quot;sender&quot;
...more attibutes...
>
<CFMAILPARAM
FILE=&quot;file-name&quot;
>
or
<CFMAILPARAM
NAME=&quot;header-name&quot;
VALUE=&quot;header-value&quot;
>
...
</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.
Sylvano
dsylvano@hotmail.com

&quot;every and each day when I learn something new is a small victory...&quot;
 
I've looked at the CF help files. Let me clarify what I'm looking for. The name for cfmailparam eq &quot;header-name&quot; in your example...

What other values can &quot;name&quot; equal? Are the specified in CF?

Like: header-name, date, reply-to etc...(looking for this list of names/values/syntax)

Or can I create what ever name I want?

Also, based on the cfmailparam &quot;name&quot; is it placed on the email in any particular order?

Thanks for your reply
 
You can use NAME and VALUE attributes to add headers to your mail.

For example, to add a Reply-to header set to the address youremail@whatever.com, you can do this:

<cfmailparam name=&quot;Reply-To&quot; value=&quot;youremail@whatever.com&quot;>
in the same manner you can specify the file you want to attach to your mail:

<cfmailparam file=&quot;c:\folder\filename.txt&quot;> Sylvano
dsylvano@hotmail.com

&quot;every and each day when I learn something new is a small victory...&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top