actually, loop over the "fieldNames" variable instead to avoid having the
list of fieldNames in the mail output:

<cfset entry="">
<CFLOOP list="#form.fieldNames#" index="field">
<cfset entry=entry&#field#&"="&#StructFind(form, field)#&chr(13)&chr(10)>
</CFLOOP>

<cfmail ...>
#entry#
</cfmail>

+-----------------------------------------------+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
TeleCommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
        - Thomas Paine, The American Crisis



-----Original Message-----
From: Howie Hamlin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 12:36 PM
To: CF-Talk
Subject: Re: Looking for mail tag - submit form emails contents without
all the code...


Something like:

<cfset entry="">
<CFLOOP collection="#form#" item="field">
<cfset entry=entry&#field#&"="&#StructFind(form, field)#&chr(13)&chr(10)>
</CFLOOP>

<cfmail ...>
#entry#
</cfmail>

HTH,

--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com  - 631-737-4668 x101
*** Please vote for iMS here:
http://www.sys-con.com/coldfusion/readerschoice2002/nominationform.cfm ***
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
>>> Find out how iMS Stacks up to the competition:
http://www.coolfusion.com/imssecomparison.cfm

----- Original Message -----
From: "Steven A. del Sol" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 2:22 PM
Subject: Looking for mail tag - submit form emails contents without all the
code...


> I am sure there is something so simple to this...
>
> I would like to send the users form variables to a contact email.  Is
there
> a tag to do this?  Without writing some long old CFMAIL?
>
> Steve
>
> 

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to