O'Reilly logo

ColdFusion 8 Developer Tutorial by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Email

We will continue writing our code with much of our core functionality being separated into a CFC. We will look at sending a message, retrieving a list of messages, pulling back individual messages, and even deleting messages from our server. Remember that it is a real delete function. So do not delete a valuable piece of mail. Here is our base page and the code. This page lets us send email either with or without an attachment. There are a few required fields. We must fill in the fields for the server. Just fill them all in to make sure it is a good way to test for now.

Working with Email
<cfparam name="form.server" default=""> <cfparam name="form.user" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required