Skip to main content
Participant
July 10, 2013
Question

Storing form information using cfm and sending attachments in email

  • July 10, 2013
  • 0 replies
  • 374 views

Hi. I am trying to have an email automatically sent to me when an html form is completed and also include an attachment that the user has attached when they hit submit. But whhen I go to run it, I get no errors however I don't even get the email.  So I can't debug because there is no way to set breakpoints in dreamweaver. Here are parts of my .cfm code. Thanks for your help in advanced.


<CFMAIL TO=....my code>

----------------------------------

Data entered through form

----------------------------------

Date: #form.Date#

Name: #form.Name#


 

<cffile
action="UPLOAD"
fileField="form.datafile"
destination="#GetTempDirectory()#"
nameconflict="MAKEUNIQUE"
/>

<cfmailparam file="#form.datafile#" disposition="attachment" type="text">

</CFMAIL>

This topic has been closed for replies.