CFIMAP for Gmail to get System Folders


/ Published in: ColdFusion
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <cfsetting showdebugoutput = true enablecfoutputonly="false" />
  2.  
  3. <cfimap action="open" server="imap.gmail.com" secure="true"
  4. username="#username#" password="#password#" connection="imap" >
  5.  
  6. <cfimap action="listallfolders" connection="imap"
  7. recurse="true" name="temp" folder="[Gmail]" >
  8.  
  9. <cfimap action="close" connection="imap" />

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.