CF doesn't process any commands sent through a form submission.  Probably
for security reasons, I would think.  So your #name# is just plain text as
far CF is concerned.

You need to code this into your <cfmail> tag.  Something like

<cfmail ...>

Dear #query.name#:

#form.textarea#

</cfmail>


=========================
Howard Owens
Web Producer
InsideVC.com
mailto:[EMAIL PROTECTED]
=========================

> -----Original Message-----
> From: Joshua Miller [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 07, 2000 7:38 AM
> To:   CF-Talk
> Subject:      Customizing Email with CFMail
> 
> I'm making a small bulk mail application so we can notify registered users
> of various updates to our site, etc. I have a small form with a subject
> line
> and a body block (textarea) and I want to be able to enter #name# to refer
> to the user by name. The CFMAIL loops over a database where #name# exists
> as
> a field. If I enter #name# into the <cfmail> block it works fine, but when
> I
> pass #name# through the text area it sends the actual text '#name#' with
> the
> email ...
> 
> What am I doing wrong? Is there a way to do this? Do I have to URLEncode
> the
> #name# being passed?
> 
> Thanks in advance.
> 
> Joshua Miller
> Web Development
> Eagle Technologies Group, Inc.
> Business Solutions for the Next Generation
> www.eagletgi.com
> [EMAIL PROTECTED]
> 
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to