• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Problems pulling attachments via CFEXCHANGEMAIL

Enthusiast ,
Oct 02, 2007 Oct 02, 2007

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

577

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 24, 2008 Jan 24, 2008

Copy link to clipboard

Copied

Can you please send hotfix to bostjan.bo at gmal.com? Thanx.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 24, 2008 Jan 24, 2008

Copy link to clipboard

Copied

LATEST
I'm not sure what hotfix you are referring to. BTW, my problem seems to have solved itself. It is possible that I may have been trying to pull attachments from the wrong message. Anyway, the code is working for me as advertised.

-reed

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation