CFExchange and Attachment Issue
Hi,
I'm working on getting attachment from a message, but each time it throws 501 error message. I'm following the documentation on attachments, but the code doesnt work for me. I searched this forum as well as google. Others, having the same issue with no solution posted.
Here is the code:
<cfif mailMessage.hasAttachment>
<cfset i = 1>
<cfset path = "#GetDirectoryFromPath(ExpandPath('*.*'))#attachments">
<cfdump var="#path#\#i#">
<cfloop query="mailMessage">
<cfexchangemail action="getAttachments" connection="checkMail" folder="#session.folder#" uid="#url.id#" name="attachment"
attachmentPath="#path#/#i#" >
<cfset i++>
</cfloop>
<cfdump var="#attachment#">
</cfif>
Any suggestions?
