ColdFusioning: Pronunciation \kold-fy�-zhn-ing\ Noun: The action of one that writes ColdFusion.

New ColdFusion 9 Feature: CFIMAP

ColdFusion 9 now has the ability to directly interface with IMAP servers, including Google's GMail and Google Apps. Like most ColdFusion tags, the syntax is very simple. Here is an example:


<cfimap
action="open"
server = "imap.gmail.com"
username = "yourusername"
password = "yourpassword"
secure="yes"
connection = "mail.gmail"
>


<!--- Get the Headers. --->
<cfimap
action="getHeaderOnly"
connection="mail.gmail"
name="theHeaders">


<cfdump var="#theHeaders#">

<cfimap
action="close"
connection = "mail.gmail">


The available actions are: GetHeaderOnly, GetAll, Delete, Open, Close, MarkRead, DeleteFolder, CreateFolder, RenameFolder, ListAllFolders, MoveMail.



Related Blog Entries

Comments