Best of CF9: MailClient

This post is more than 2 years old.

Today's Best of ColdFusion 9 entry is the second to last entry. Slowly but surely we're getting there. One more and it will be time to judge! Today's entry comes from Adam Tuttle. Hits entry is entitled MailClient. It's a simple entry so the review won't be too long, but it's got a lot of interesting bits to it I think folks will want to take a closer look at. Before getting started, ensure you read the following.


1) This is a Flex 4 project. I first tried to import this into FlexBuilder but when I saw the telltale signs of Flex 4 (lots of namespaces ;) I switched to my Flash Builder beta. You can download the beta here. I've talked a bit about Flex 4 before. I have not been keeping up with recent developments but hope to get a bit more into it this summer.
  1. This entry makes use of CFaaS. I believe this is the first entry in the series to do so (but if I'm wrong, forgive me). CFaaS is something that - initially - I was kind of "meh" on in terms of ColdFusion 9. After learning it for my presentation for RIAUnleashed though I grew to appreciate it a bit more. (In fact, I've submitted some fixes/updates back to Adobe.)

Because of CFaaS usage, be sure to create a user with the following credentials: flexUser, flexPass. You want to give this user access to the Pop service, and ensure 127.0.0.1 is listed in the Allowed IP page.

  1. Once you've got the Flash Builder project created, you will see an error about the services SWC file. This is because it points to Adam's server. Remove that in your Library and then re-add your own copy from your ColdFusion CFIDE/scripts folder.

One done, you should be able to run it as is. If everything worked ok, you'll get a nice little AIR window.

As you can see, this is a simple mail reader. It makes use of the CFaaS Pop service. It's using a 'throw away' account Adam set up, but you can modify the account details by editing MailController.as. It doesn't send yet, but it does show a simple example of reading mail via CFaaS. I'll also point out it makes use of Swiz. I've fallen behind on recent updates to Swiz, but I cannot stress enough how darn helpful Swiz was in my Flex development. It's the number one thing I recommend for people who have gotten past the "Hello World" Flex development.

Finally - for a good review from the author himself, you can watch this cool video he set up. I'm using S3 to serve it up, so let me know if it doesn't work for you.

http://s3.coldfusionjedi.com/mailclient.mov

Download attached file.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Sam Farmer posted on 1/19/2010 at 11:17 PM

@Adam: Very cool. Awesome stuff.

The screencast is really helpful as well.

Comment 2 by Adam Tuttle posted on 1/20/2010 at 8:24 AM

Man, it's about time! I thought it was going to be June before you finished these up. Surprised not to see more CFaaS love in this competition. I may not even post anything else on my own blog - you covered it pretty well.

@Sam Thanks! Glad you liked the video.

Comment 3 by pritesh posted on 6/29/2010 at 1:37 PM

where can I download source cdoe?

Comment 4 by Raymond Camden posted on 6/29/2010 at 3:09 PM

Click "Download attached file" above.

Comment 5 by Adam Tuttle posted on 6/29/2010 at 3:11 PM

@Pritesh the source can be downloaded from my blog, here: http://fusiongrokker.com/po...