ColdFusioning.com
My personal blog about ColdFusion, code, Google, & computers...
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.
Comments
[Add Comment]
[Subscribe to Comments]
# Posted By Cameron
| 7/6/10 9:48 AM
[Add Comment]
