cfmail attachment not found on my computer

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default cfmail attachment not found on my computer

    I've seen many users here in the forum talking about attaching a file using the
    <cfmailparam> tag, but I can't get it to work. Please help me. Just hard coding
    it in the <cfmail> tag doesn't even attach it. I keep getting 'file not found'
    error, even though the file is located at c:\ test.txt on my computer. I've
    also tried entering the file's path in a form on the preceding page. Neither of
    these work. Any ideas? Thanks, <cfmailparam file='c:\test.txt'> --I get
    ....'The resource c:\test.txt was not found. ' <cfmailparam
    file='#Form.attachment#'> --I get... Error Occurred While Processing Request
    The resource c:\test.txt was not found. The root cause was: . The error
    occurred in D:\e-caa.com\wwwroot\user\groupem\3sec.cfm: line 83 81 :
    #Form.message# 82 : 83 : <cfmailparam file='#Form.attachment#'> 84 : </cfmail>
    85 :

    tharring Guest

  2. Similar Questions and Discussions

    1. cfmail attachment
      Can someone help Please. Not till I read a message in this board did I found out that the <cfmailparam file> tag only uploads files from the...
    2. CFMail Dynamic Attachment
      Greetings, I have a form that a user fills out and it sudmits to a page that uses cfmail. That cfmail tag sends an attachment to a web admin. The...
    3. CF5 cfmail sending blank .txt attachment
      we're having a wierd problem with CF5 CFMAIL. We sent out 350 emails and 300 were sent out with the correct attachment and 50 were sent out with...
    4. CFMAIL change attachment file content
      My application has function to export data as textfile. This generated textfile then will be sent via email as attachment. Generated file has...
    5. IE does not get reply from found web site nad the computer locks u
      I have built a simple C# web application to select data from the Northwind data base and display the data in a basic data grid. On Startiing the...
  3. #2

    Default Re: cfmail attachment not found on my computer

    try this:
    <cfmailparam file = "c:\test.txt" type="text/plain">

    Be sure test.txt is one the right location of your SERVER not your personal
    computer.

    If not work, check the permission of your file.

    toniu27 Guest

  4. #3

    Default Re: cfmail attachment not found on my computer

    try this:
    <cffile action = "upload" ... />
    toniu27 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139