Advertisement

03.28.2007 at 10:41PM PDT, ID: 22479535
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.8

getting data as attachment from another pc

Asked by basty23 in ColdFusion Studio

Tags: , ,

how to get the file in another pc using coldfusion, im having trouble in getting data as attachment from another pc, heres the scenario:

in my cfmail i need to get file from another pc  to be attached on my mail.i need to get the file automatically . i am using cfdirectory to get the file but its not working if the file is outside the server, can somebody has a solution to this?
 here is my code:
<cfif IsDefined("form.mail")>
      <cfif form.mailto is not "">
            <cfmail to = "#form.mailto#"
                  CC="t"
                  from = "#form.mailfrom#"
                  subject = "#form.subject#">
                        #form.message#
                  <cfmailparam file="D:/CURRENT TASK/cache/#form.attachment#">
            </cfmail>
                        <h3>Thank you</h3>
            Your message has been sent to <em style="color: #990000;"><cfoutput>#form.mailto#</cfoutput></em>.
            
      </cfif>      
<cfelse>

      <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
      <cfdirectory directory="D:/CURRENT TASK//cache" name="dirQuery" action="list">
      
      <form action="#CurrentPage#" name="theForm"  method="post">            
       <!---Get all directory information in a query of queries.--->
      <cfquery  name="dirsOnly" dbtype="query">
      SELECT name FROM dirQuery
      order by dateLastModified desc
      </cfquery>
      <cfdump var="#dirsOnly#">
      <cfoutput>#dirsOnly.name#</cfoutput>
      <table width="598" height="180" border="0" align="center" cellpadding="1" cellspacing="1">
      <tr>
            <td width="16%" class="columnheader">&nbsp;<strong>To :</strong></td>
            <td width="84%" class="listdetail"><input type = "Text" name = "mailto" class="input"  value="<cfif isdefined("url.email")><cfoutput>#url.email#</cfoutput><cfelse><cfoutput>#form.mailto#</cfoutput></cfif>" onKeyPress="return isValidEmailInput(event);"></td>
      </tr>
      <tr>
            <td  class="columnheader">&nbsp;<strong>From :</strong></td>
            <td class="listdetail"><input type = "Text" name = "mailfrom" class="input"  value="<cfif isdefined("url.sender")><cfoutput>#url.sender#</cfoutput><cfelse><cfoutput>#form.mailfrom#</cfoutput></cfif>" onKeyPress="return isValidEmailInput(event);"></td>
      </tr>
                  
      <tr>
            <td width="16%"  class="columnheader">&nbsp;<strong>Attachment:</strong></td>
            <td class="listdetail"><img src="../images/pdf-file.gif" width="22" height="22">PDF file
          <input type="text" name="attachment" class="input" value="<cfoutput>#dirsOnly.name#</cfoutput>" > </td>
                  
      </tr>
      <tr>
            <td  class="columnheader">&nbsp;<strong>Subject :</strong></td>
            <td class="listdetail">Quotation<input type="hidden" name="subject" class="input" value="Quotation"></td>
      </tr>
      <tr>
            <td valign="top"  class="columnheader">&nbsp;<strong>Message :</strong></td>
            <td class="listdetail"><textarea name="message" cols="60" rows="6" class="input"></textarea></td>
      </tr>Start Free Trial
 
Loading Advertisement...
 
[+][-]03.29.2007 at 11:33AM PDT, ID: 18818560

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Studio
Tags: attachment, cfmailparam, file
Sign Up Now!
Solution Provided By: SidFishes
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.29.2007 at 11:36AM PDT, ID: 18818592

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.29.2007 at 10:24PM PDT, ID: 18821717

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.30.2007 at 06:10AM PDT, ID: 18822979

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.30.2007 at 06:15PM PDT, ID: 18827338

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.30.2007 at 08:50PM PDT, ID: 18827690

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.30.2007 at 09:53PM PDT, ID: 18827804

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.31.2007 at 07:24AM PDT, ID: 18828647

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.01.2007 at 05:45PM PDT, ID: 18833856

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.02.2007 at 08:49AM PDT, ID: 18837308

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.10.2007 at 06:57PM PDT, ID: 18886977

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2007 at 04:27PM PDT, ID: 19184407

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.30.2007 at 05:35PM PDT, ID: 19184724

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.15.2007 at 03:47PM PDT, ID: 19296056

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.20.2007 at 06:44PM PDT, ID: 19329900

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 12:10AM PDT, ID: 19339460

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32