Skip to main content
Known Participant
January 21, 2009
Question

cfmail attachments not working

  • January 21, 2009
  • 3 replies
  • 1305 views
So I have a web page that...
1 Generates an excel file.
2 Saves the excel file to my webserver.
3 Sends an email with the excel file attached.

If the user opens the email via desktop outlook the attached excel file will open and display just fine. If the user opens the email via web outlook the attachment won't open. I have no idea if this is a coldfusion problem our an outlook problem. Does anyone have any idea's what would cause this to happen?

Thanks
    This topic has been closed for replies.

    3 replies

    Participating Frequently
    January 26, 2009
    When I attempt to open this file via Exchange I get the following error:

    "The file you are trying to open, "<FILENAME>", is in a different format than specified by the file extension. Verify the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?"

    If I click YES then the file does open, but the error does suggest that it's not saving in a proper .xls format.

    Participating Frequently
    January 24, 2009
    I didn't goto the office today so I've not tested this yet; will on Monday though!
    cputnam14Author
    Known Participant
    January 24, 2009
    No problem...thanks for the help
    Inspiring
    January 21, 2009
    How exactly does your webpage generate the excel file?
    cputnam14Author
    Known Participant
    January 21, 2009
    I create it with the cfsavecontent tag.
    Then I use the cffile to write the file to my server
    Participating Frequently
    January 21, 2009
    Maybe security settings in Web Outlook? Does it happen with more than one Web Outlook instance, and what error do they get? Can you send me a file generated in this fashion to test with? My email addy is jamie@hostmysite.com.