One of the most commonly used ColdFusion tags may also be one of the most misused. I say this because of the ColdFusion code that I've seen in production. It appears that a large number people think that all you need to do is open the CFMail tag and type in a to address the from address a subject and then close the tag. And then stuff your email message between the opening and closing tags. People do it this way as this is how they are shown, see the examples below.
-
Archives by Subject
Archives by Month
March 2013 (1)
December 2012 (2)
November 2012 (1)
September 2012 (3)
July 2012 (1)
May 2012 (4)
February 2012 (5)
November 2011 (1)
September 2011 (3)
August 2011 (1)
July 2011 (7)
June 2011 (1)
April 2011 (2)
March 2011 (5)
February 2011 (3)
January 2011 (1)
August 2010 (2)
May 2010 (1)
April 2010 (2)
March 2010 (2)
February 2010 (1)
December 2009 (3)
October 2009 (3)
August 2009 (3)
July 2009 (2)
June 2009 (3)
February 2009 (2)
January 2009 (5)
November 2008 (4)
May 2008 (3)
Recent Comments
CF.Objective() in the Winter
Sean Corfield said: The first cf.Objective() was at the Thunderbird (a fun motel!) and the year was 2006. It was March 1...
[More]
Installing ColdFusion 10 on OS X Mountain Lion
Laurence said: You'll need to start your new instance in the CF Admin > Enterprise Manager > Instance Manager...
[More]
CF.Objective() in the Winter
Wil said: Sean, I forgot about that year. Was it 2008? At the Thunderbird hotel by the airport?
Weather updat...
[More]
CF.Objective() in the Winter
Sean Corfield said: It was in February the first year... the snow was falling horizontally :)
[More]
CFMAIL Attachments to Apple iPad and iPhone
Bettina Maria said: I didn't realize you could attach files using CFMail. Good to know! Thanks!
[More]
CF Webtools Bloggers
Latest from CFBloggers
Using PhoneGap to Build Mobile Applications - Matt Gifford
CFObjective Notes: Mobile but Secure - Bilal Soylu
CFObjective Notes: ColdFusion Builder: IDE to Boost Your Productivity - Elishia Dvorak
CFObjective Notes: GIT: Choosing workflows that make sense - Tim Cunningham






#1 by Mihai Baboi on 5/27/10 - 5:51 AM
#2 by Frank on 5/27/10 - 6:15 AM
Thanks for sharing your code.
#3 by Tony Garcia on 6/2/10 - 7:34 AM
#4 by Wil Genovese on 6/2/10 - 2:38 PM
@Tony You're welcome.
@Mihai I'm not sure there is an easy way to do this in PHP. It's been a long time since I coded an email in PHP.
#5 by ED on 9/14/10 - 9:09 AM
Thanks for this article, it's very useful. I'm running into another issue where I want to have special characters in my email subject. Right now they're html characters and in the text of the message they're displaying properly, so I believe the encoding by CF is correct, but in the subject, it's not getting encoded. Any suggestions?
Thanks!
#6 by Keith on 9/28/10 - 12:29 AM
to make a test but get data content error or some such
#7 by Wil Genovese on 9/28/10 - 12:33 AM
#8 by Rick Shimko on 1/14/11 - 1:58 PM
client's machine? Please advise.
#9 by Wilgeno on 1/26/11 - 3:09 PM