3
我正在使用CFIMAP每天下載電子郵件附件。儘管迄今爲止我嘗試過的內容是該腳本正在從我的所有文件夾中讀取電子郵件,而不是從收件箱中讀取電子郵件。有人知道怎麼修這個東西嗎?CFIMAP從所有文件夾讀取電子郵件
這是我的代碼:
<cfimap
server = "mail.example.com"
username = "[email protected]"
action="open"
secure="yes"
password = "pass"
connection = "mail.example.com" >
<cfimap
action="GetAll"
folder="Inbox"
name="test"
attachmentpath="e:\testfolder"
GenerateUniqueFilenames="yes"
connection="mail.example.com" >
<cfimap
action="MoveMail"
newfolder="processedEmails"
stoponerror="true"
connection="mail.example.com">
<cfimap action="close" connection = "mail.example.com">
「看到」 的附件的實際變量?你可以給我一個鏈接,因爲我沒有在Adobe的文檔中看到它。 – Geo 2013-03-09 16:58:50
當我們顯示'getAttachments'的結果時,「seen」是一個列名。請嘗試轉儲結果getAttachments。你可以參考http://shemy-coldfusion.blogspot.in/2012/12/coldfusion-code-to-get-mail-attachments.html – shemy 2013-03-11 04:26:50