http://club.coolmaps.com
tomorrow's fusion today

Do you need to send automated, personalized email from your web site? CFMail could be the thing you've been looking for!

The CMAIL Workshop is divided into five parts. The workshop is designed to be worked thru from start to finish.

getting to know CFMAIL
CFMAIL is a Cold Fusion tag that generates SMTP mail! For CFMAIL to work you're going to need two things:

  • having your Cold Fusion pages (.cfm) hosted on a server that is running Cold Fusion server
  • your server will need to be running a mail server

The source code of CFMAIL looks like this:

cfmail code example

The source code doesn't look that different to what you see in an email client as an end user! The only significant difference for now is that it begins with an opening CFMAIL tag and ends with a closing one.

How does it work? Simple. Put a CFMAIL tag on a .cfm page and it will send an email as specified in the tag.

CFMAIL requires you to specify a sender address, recipient address and subject, all the other attributes (there are more than shown above) are optional.

What is especially neat about the CFMAIL tag is that all the attributes can be dynamic, that is for example, the recipients email could be pulled from a database query, or from a form, or..... well, let's take a look at CFMAIL in action!
[ go to sending plain vanilla email ]

[ to top of page ]

to home page
passing values send a page send formatted mail sending plain mail cfmail intro

Support CCC thru Amazon. Buy CF Bible 1 - The CF Web Application Construction Kit

Support CCC thru Amazon. Buy CF Bible 2 - Advanced CF Application Development

 
member of club xChange
downloads contact us site map