Skip to main content
March 7, 2008
Answered

cfmailparam

  • March 7, 2008
  • 1 reply
  • 383 views
Hello~

I have a form that collects two documents, among other information. It saves data into a database, which it is doing fine. The last part of the action code is a <cfmail> message with all of the form information, and the option to <cfmailparam> two files, if they are submitted with the form. When I comment out the two <cfmailparam> lines, the email is sent correctly. When I leave them in, the form works and collects the correct data, but no email is sent. Please help!
    This topic has been closed for replies.
    Correct answer
    I figured it out! It didn't like the <cfparam name> and <cffile destination> being the same :)

    1 reply

    Inspiring
    March 7, 2008
    Have you looked in CF's logs? If so can you post your error messages?

    Does the account CF runs as have permission to read from the directories where these files are located?

    Are you using a absolute path to your files?
    Correct answer
    March 7, 2008
    I figured it out! It didn't like the <cfparam name> and <cffile destination> being the same :)