Email Form

I am trying to make a form that can be emailed to myself using cfm.

Page 1 of 1

2 Replies - 2573 Views - Last Post: 22 June 2007 - 08:46 AM Rate Topic: -----

#1 jdredneck  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 31-May 07

Email Form

Post icon  Posted 31 May 2007 - 10:05 PM

I am new to CFM, and haven't done coding for 6-8 years. I have been reading around trying to figure out what is going on, but the one sample I have doesn't make sense to me. It may be because I am trying to put everything in one page, I don't know. PLEASE HELP!

sample code found:
<form action="http://www.alumni.cornell.edu/cfxcgi/sendmail.cfm" method="post" name="demoForm">
<input type="hidden" name="mail_confirmation_page" value="Path_to_your_thank_you_page_goes_here">
<input type="hidden" name="mail_to" value="receiving email goes here">
<input type="hidden" name="mail_subject" value="Subject_goes_here">
Name: <input name="mail_name" type="text" size="50">
Email: <input name="mail_from" type="text" size="50">
Address 1: <input name="mail_address" type="text" size="50">
Address 2: <input type="text" name="mail_address_2" size="50">
Phone: <input name="mail_phone" type="text" size="50">
Message: <textarea name="mail_message" cols="30" rows="5"> </textarea>
<input name="submit" type="submit" value="submit">
<input name="reset" type="reset" value="reset">
</form>

Is This A Good Question/Topic? 0
  • +

Replies To: Email Form

#2 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1868
  • View blog
  • Posts: 20,280
  • Joined: 17-March 01

Re: Email Form

Posted 31 May 2007 - 10:35 PM

what do you have in your sendmail.cfm file? Or is that it?

Some where you need to have a <cfmail> tag that processes the form data.
Was This Post Helpful? 0
  • +
  • -

#3 kenham40  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 14
  • Joined: 22-June 07

Re: Email Form

Posted 22 June 2007 - 08:46 AM

View Postjdredneck, on 31 May, 2007 - 10:05 PM, said:

I am new to CFM, and haven't done coding for 6-8 years. I have been reading around trying to figure out what is going on, but the one sample I have doesn't make sense to me. It may be because I am trying to put everything in one page, I don't know. PLEASE HELP!

sample code found:
<form action="http://www.alumni.cornell.edu/cfxcgi/sendmail.cfm" method="post" name="demoForm">
<input type="hidden" name="mail_confirmation_page" value="Path_to_your_thank_you_page_goes_here">
<input type="hidden" name="mail_to" value="receiving email goes here">
<input type="hidden" name="mail_subject" value="Subject_goes_here">
Name: <input name="mail_name" type="text" size="50">
Email: <input name="mail_from" type="text" size="50">
Address 1: <input name="mail_address" type="text" size="50">
Address 2: <input type="text" name="mail_address_2" size="50">
Phone: <input name="mail_phone" type="text" size="50">
Message: <textarea name="mail_message" cols="30" rows="5"> </textarea>
<input name="submit" type="submit" value="submit">
<input name="reset" type="reset" value="reset">
</form>


That's the form file, where is your sendmail.cfm file? (as the previous poster said, the cfmail tag would be used in the sendmail.cfm file).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1