Cfmail: attach file with cfmailparam?

Greetings
I created a form several years ago that allows users to submit maintenance requests. They check a box if they want a receipt sent to their own email.
The requests do not get captured in a DB- simply sends to email.
This all has been working fine- I am now attemping to add document attachment capability- I am obviously not using the correct method.
The form itself has:
<cfform action="request_action.cfm" method="post" name="detail" id="detail" enctype="multipart/form-data">
etc. etc.
Upload File or Sceenshot if neccessary: <cfinput name="file_upload" type="File" required="no" size="40"></cfform>
The request_action.cfm has:
<cfmail to=
etc. etc.
<cfif isDefined("Form.file_upload") >
    <cfmailparam 
        contentID = "file_upload"
        disposition = "attachment"
        file = "#Form.file_upload#" 
        type ="application/msword,application/docx,application/pdf,application/octet-stream,applicatio n/msword,text/plain,binary/octet-stream, image/pjpeg,  image/gif, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-word.document.12, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"></cfif>
</cfmail>
When I run without the above code, everything works. When I run with the cfmailparam, it sends a strange receipt with no content?
Thanks for any help with this
Norman

You didn't post any code that shows that you actually uploaded the file to your server. 

Similar Messages

  • How to attach file with an email in travel and expenses

    Hi Experts,
    I am new to sap cloud application studio.
    We have requirement that need to attach any type of files in the mail,
    I have gone through this : How to send an email with attachments in SAP Cloud Application Studio
    But compilation error at import AP.FO.ACTIVITY.GLOBAL., so not able to work with that lines of code.
    I am using these lines of code to send email.
    EMailUtilities.SendEMail(lang, bcc, cc, toAddress, htmlContent, from name, subject);
    So am not able to getting how to attach file with this code.
    Please help me regarding this.
    Thanks & Regards,
    Preethi Ande

    Hi Preethi,
         I am trying to send mail from custom BO in Travel on Demand System.I am getting  compilation error.please look into the attached screenshot for the code.
    Please assist me on this,                                Thanks in advance
    regards,
    Sendhilazhagan

  • Why can't I attach files with my hotmail account on my mac pro since I upgraded to lion?

    why can't I attach files with my hotmail account on my mac pro since I upgraded to lion?

    i can' t believe it but after 3 hours of reading everything i could find on this subject i discovered the answer on accident: IT'S THE CLOCK!!!!! I know that it sounds crazy but go to settings and go to date and time and set it to the automatic date and time, even if it's the wrong time. after i did that, everything worked perfectly! aldiko accepted my adobe id and imported my purchased book happily.  i hope it is that easy for everyone, best of luck.

  • Attached files with Services objects in a equipment

    Hi everyone
    I have many attached files in functional locations and equipments, using the attachment list of "Services for objects" (files and URL's).
    Also, we are moving the maintenance structure to other server and the user dont want to lose the attachments.
    Do you know a program(s) or function(s) for downloading the files and upload them again?.
    Do you know if exists a server directory with all files attached in functional locations or equipments?
    Thanks for suggestions.
    RG

    CALL FUNCTION 'SO_OBJECT_DOWNLOAD'

  • I am having problems attaching files with Maverick.  Any suggestions?

    I can't attach files to emails or access them at all from any app.  They are visible but greyed out.  Any suggestions?  Thanks.

    In older versions of Elements PSA files were associated with Photoshop Album which has now been replaced by the Organizer. Elements has no 3d functionality for supporting space planning files but these files can normally be exported or saved by the originator as a bitmap or pdf file. Those could then be opened in PSE. I suggest you explore the possibilities of file conversion with your original source.

  • Photos, graphics and attached files with emailsI

    I have the following problem with emails containing photos or graphics or when loading attached files : Half of the time, I cant see photos or graphics, I have empty frames. Loading attached files will never start and stay at 0 % I have set to load pictures. But even with the parameter set to "do not load picture " and using the " loading photos " button it s the same : not always working. Do you have it too? I have also the "retreiving... " message when I want to read mail. Thank you.

    Am I the only one to have this issue ?
    If someone could answer me : form time to time (half of the time...) I can't see photos or graphivs in my mails, I just have an empty frame...

  • How to attach file with PR and PO?

    Hi all
    How to attach file (Drawings ,execl,etc..) with PR and PO
    Please help on this
    Thanks
    Regards
    Dhinesh

    Hi
    Thanks
    But If i select  system > service for object in change mode i am getting error "No
    service availale" like that ,how to sort it out and attach the file
    And more ever that icon (service for object) is not coming in change mode ,i selected
    by menu path .How to make it display as icon in bar
    Regards,
    Dhina

  • Attach file with Vendor in MDG-S not using T-code

    Hi Experts,
      In MDG-S while creating change request in attachment option if I attach any file that is getting deleted on after activation . My requirement is to store that file with vendor.
    Please suggest me the way to achieve that.
    Thanks in advance.
    Regards,
    Samrat

    Hello,
    First of all, attachments are not deleted upon approval (at least in all the systems I worked with the attachment is still available after CR approval).
    Any way, if you want to transfer the attached file to the vendor, you will have to build a custom functionality (function module or method) to read from the MDG tables USMD1211 and USMD1212 and transfer the files to the actual object GOS attachment. You can find instructions and hints on how to do it (for example, google "create SAP GOS attachment").

  • Button Actions for Attached Files with Limitations

    I have a slide with 5 buttons with the action to open up a pdf; one for each button.  Yet it seems that only 3 buttons will work no matter the order I click on them.  Does anyone know if there is a set limit to attached files that can be placed on one slide?

    Hi there
    No set limit I'm aware of. But it might be related to timing and pause points if you didn't properly configure the buttons.
    You should configure each button so it opens in a new window and the project does not continue playing.
    Another thing to check is the naming of the PDFs. When you upload to a web server it may be the case that you perhaps specified SomeFile.pdf in the link but the file is actually named SOMEFILE.PDF or somefile.pdf. (case can factor in here)
    Hope this helps a bit... Rick

  • Insertion of an attachment file with transaction ME51N

    Good morning,
    Using transaction ME51N, I try to insert an attachment in the header
    note (using GOS services)
    Depending of the documents I try to insert I get the message :
    "Include file in PC application - Try again? " in a pop-up
    (file is not open and  I have SAP_ALL SAP_NEW in my authorization profile).
    OR
    I get the message : "Document created" but nothing is created : the
    attachmment list cannot be accessed.
    Insertion of the file works with ME52N.
    Should work with ME51N and ECC6, since support package version is OK  (note 913251)
    Can you help me?
    Best regards.

    Pb of firewall, not SAP.

  • How can I sent 2 or more attached files with 1 email-message from Ipad iOs6.0?

    How to sent a mail with 2 or more attachments from Ipad or Iphone? Not foto or video-files!

    Pages and iBook will only accomodate one document at a time.
    Pages - can be sent from the open document (Tools Menu - looks like wrench) or the dccument library screen (Tap Edit, tap the document, tap the the share iconn  - looks like square with a swoosh arrow). iBooks work from the open document.
    GoodReader supports multiple email attachments, and I'm sure there are others available in the app store.

  • Can iphone 4s send an attached file with a SMS

    Wondering if I can send a file as an attachment to someone whom I have a text number for but don't have his email address.

    No.

  • Sending attached files with invoice email

    Hi
    We have an invoice output type configured to send invoice as email. This is almost SAP standard setup.
    Users sometimes uploads documents to the invoice via the "Services for object" button in the invoice. This can be excel, word or pdf documents.
    Is it possible to attach these documents to the same email as the one containing the actual invoice.
    Best regards
    Thomas Madsen Nielsen

    Sorry Rob
    you (SDN) put in a new limit of only 10 open issues - i wonder why - so I had to clean up a lot of very old open issues, and it took me 3 tries to realize that there was a quick option "mark as answered". Sorry for that.
    But I don't understand why you confuse this thread with that info.
    This is a complete new thread, so if possible could you please remove your post again, and my reply also.
    Thanks for you help.
    PS. actually I just realized that the function "mark as answered" also brings the thread up front, so how can I close open threads?
    Nevermind - this discussion should not take place in this thread.
    Edited by: Thomas M. Nielsen on Jan 12, 2011 4:43 PM

  • I can't attach file with yahoomail. after I select the file , and double click it , nothing will be done

    I just can't attach any file in yahoomail. when I double-click the file nothing will happen

    It's your anti-virus not working correctly while scanning. You can turn off the option to scan in Firefox's '''about:config''' by filtering for '''browser.download.manager.scanWhenDone''' and double-clicking that line to change the value to '''false'''

  • Attach file with oracle forms6i

    oracle forms 6i
    oracle ebs 11.5.10
    database 9i   
    dear i make new custom application in my ebs 11i
    and i want to  upload file in our custom application in my server lunix
    how i attach my file and i want to save it  not as blob  but just upload to my server and after download it  ?

    upload  and download file in ebs 11.5.1 in Technology - EBS on Linux
    oracle ebs 11.5.1
    database 9i  
    forms 6i
    dear i make new custom application in my ebs 11i
    and i want to  upload file in our custom application in my server
    and after i want to make archive to this file
    how i upload my files and i want to save it  Not as blob  but just upload to my server lunix  ?
    and after download it make archive ?

Maybe you are looking for

  • Why do I need to reset my Airport Express multiple times a day?

    I purchased an Airport Express (AE) in 2008.  Ocassionaly since I've owned the device, I've had a problem connecting to it via iPod touch, iPhone, Macbook Pro, Macbook, etc.  I would see the AE in my wifi router list, I just couldn't connect to it. 

  • Deleted items would not be purged automatically after 30 days

    On my Exchange 2013 ECP, I went to Servers->Databases, then double click to open one of the databases listed, I then clicked Limits, under "Keep deleted items for (days):", I set it to 30 days. But the deleted items in Outlook or OWA did not get purg

  • Report on related section linked with opportunity Id

    Hi, I created a report with opportunity Id is prompted as filter. I would like to display my report in a related information section of my opportunity record. This is the URL of my report : https://secure-ausomxgva.crmondemand.com/OnDemand/user/Repor

  • Can not upgrade lightroom 5 to lightroom 6

    Hello I purchased an upgrade of lightroom 5 to lightroom 6. I downloaded the image of lightroom 6 from adobe.com When I run the installation manager of lightroom 6, it tells me that it does not see any software that would legitimate the installation

  • What is best method for getting most capacity when burning DVDs?

    Supposedly there's 4.7 gigs on your average one layer DVD that you get in a spindle at the office supply store, but I've never got that much on one. This Apple error message is frustratingly backwards and rediculous: "Files 001 is too large to fit on