I’m having problems getting attachments from Exchange
2000 inbox emails. I can get the
list of items in the inbox with no problems, but when I then
loop over that query
to do an ACTION="GetAttachments" CF throws an error:
ERROR PERFORMING THE ACTION. EXCHANGE ERROR CODE : 501
I've googled the error code and cannot come up with anything
other than
ActiveSync errors for that code.
Has anyone seen anything like this? Here is my code (pretty
simple):
<cfexchangeconnection action = "open" connection =
"exchangeConnection"
protocol = "https" server = "#msxserver#"
username = "#msxuser#" password = "#msxpassword#" />
<cfexchangemail action = "get" name = "google" connection
=
"exchangeConnection" />
<cfdump var="#google#">
<cfloop query="google">
<HR>
HAS ATTACHMENT=#google.hasattachment# UID=#google.uid#
<cfif google.HasAttachment IS "yes">
<cfexchangemail action="getattachments"
connection="exchangeConnection"
uid="#google.UID#"
name="attachInfo"
attachmentPath="C:\temp\Googleattachments"
generateUniqueFilenames="true">
<BR>
<cfdump var="#attachinfo#">
</cfif>
</cfloop>
<cfexchangeconnection action = "close" connection =
"exchangeConnection" />
If I change the protocol to be HTTP instead of HTTPS, then I
get this error:
“Requested resource was not found on the server”
Is this an Exchange config problem? I get all of the message
info just fine, it’s when I try to pull the attachment that
things fall apart!
I'm baffled!
Thanks,
Reed