New Priority Attribute in CFMAIL

ColdFusion 4.5 introduced the child tag CFMAILPARAM allowing you to add mail headers to a message

view plain print about
1<cfmail from="fromaddress" to="toaddress" subject="mail subject">
2 <cfmailparam name="priority" value="high" />
3 Body
4</cfmail>

In ColdFusion 8 this has changed a little, above is still valid, but 'priority' is now an attribute in the CFMAIL tag. The values the priority attribute can accept has been extended to allow integer values 1-5, 1 being the highest priority.

view plain print about
1<cfmail from="fromaddress" to="toaddress" subject="mail subject" priority="1">
2 Body
3</cfmail>

I don't think there is any major advantage for the change other than it's much cleaner to read.

ColdFusion 8 also added useSSL, and useTLS attributes to CFMAIL

Related Blog Entries

TweetBacks
Comments
 

About Me

Glyn Jackson, 28 years old, MD and senior developer of a development firm based in Staffordshire called Newebia Ltd. Academic background in BSc Information System & Internet Commerce. Online marketing expert (EE Ranked) and .NET developer. Has been developing with ColdFusion for 5 years and loves it. "I am not a veteran in ColdFusion but I do work on challenging projects which help me learn more about ColdFusion and if I can contribute to the community in anyway then, it's all good!"

Recommends

  • ColdFusion