Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email comments from comment form

Status
Not open for further replies.

kafka

Programmer
Oct 17, 2000
27
0
0
US
I am trying to email 4 input text areas to a designated e-mail address. The 4 inputs are located within a comments page.

 
<CFMAIL TO=&quot;user@domain.com&quot;
FROM=&quot;#form.emailfield#&quot;
SUBJECT=&quot;Enter your subject&quot;
server=&quot;enter your smtp server&quot;>

ENTER ANY TEXT HERE

NOW INCLUDE THE COMMENT BOXES:
#Form.Comments1#
#Form.Comments2#
#Form.Comments3#
#Form.Comments4#

</CFMAIL>

If you are collecting the visitor's email address, you can set &quot;From&quot; as a form item, ie. #Form.Email#

Name your comment boxes something similar to what I've done above, ie. Comments1, Comments2, etc. Then just post your form to this page and the email will be sent to the address specified in &quot;To&quot;

Hope this helps.

Bobby R
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top