New Priority Attribute in CFMAIL

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


<cfmail from="fromaddress" to="toaddress" subject="mail subject">
<cfmailparam name="priority" value="high" />
Body
</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.


<cfmail from="fromaddress" to="toaddress" subject="mail subject" priority="1">
Body
</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

Comments
 

About Me

Glyn Jackson, 26 years old, MD and youngest member of a web 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 using ColdFusion for just 3 years but 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