try,
<cfset emailbody = '#form.body#'>
<cfmail to="x" from="x" subject="x" server="x" query="x">
#emailbody#
</cfmail>
I didn't test it, but I think It should work.
Dave Livingston
General Bandwidth
512-681-5794
[EMAIL PROTECTED]
-----Original Message-----
From: Joshua Miller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 12:23 PM
To: CF-Talk
Subject: RE: Customizing Email with CFMail
No, actually I'm passing the variable through a form. There's a textarea
named "body" and in that text area I want to be able to enter: "Hello,
#name# .... blah, blah" and when the form is submitted it runs:
<cfmail to="x" from="x" subject="x" server="x" query="x">
#body#
</cfmail>
but inside the variable BODY there is #name# that I want to get evaluated by
the server so that it pulls the #name# out of the query that CFMAIL is
looping over and insert the users name into the email.
Joshua Miller
Web Development
Eagle Technologies Group, Inc.
Business Solutions for the Next Generation
www.eagletgi.com <http://www.eagletgi.com>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: Todd Ashworth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 11:58 AM
To: CF-Talk
Subject: Re: Customizing Email with CFMail
I'm not sure I understand your problem, but the fact that you mentioned
URLEncode makes me guess that you are doing something like
http://www.url.com/indec.cfm?variable=#name#
and then putting #URL.variable# in your mail form?
If this is the case, make sure you have something like:
<cfoutput>http://www.url.com/indec.cfm?variable=#name#</cfoutput>
Todd Ashworth
----- Original Message -----
From: "Joshua Miller" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, December 07, 2000 10:38 AM
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