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

Aug14

Comments 0