CFMAIL redux using CFC’s and a ColdFusion Custom Tag
I’ve been working on a new project that will allow for a user to enter validation data before sending an email using CFMAIL. The main purpose of this is that the customer doesn’t want unsolicited email sent from the application without consent of the user. To do this, I put together a custom tag (cheekily called cf_mail) and a CFC that handles all of this by using CFWINDOW to prompt the user for the appropriate text (it must be a pre-defined string that the user must type in) and then passing this text to the CFC for validation. If successful, then it sends the mail under the users credentials. If unsuccessful, it sends the user back to the original email page and tells them to quit fudging around (basically).
I’ll post all the code for this later, in beautiful ColdFusion. Many thanks to a certainĀ ColdFusion Jedi for helping me with this solution.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

ryfymafo…
Download mp3 with Chris Rockford presents Ford Electro
…