Josh,
So this is what you have:
page1: form that submits textarea containing the text you want to send out
in your email, in that textarea you'd like to put a CF variable, ie: #name#
page2: using the form variables from page 1, send out an email.
On page 2, before you send the email, you can do something like this:
<cfset modified_text = replacenocase(form.textarea, "#name#", "Aaron")>
<cfmail ...>
#modified_text#
</cfmail>
Yeah?
Aaron Johnson, MCSE, MCP+I
MINDSEYE, Inc.
<phn>617.350.0339
<fax>949.350.8884
<icq>66172567
[EMAIL PROTECTED]
___________________________________________
"Never forget that only dead fish swim with
the stream." -- Malcolm Muggeridge
___________________________________________
> -----Original Message-----
> From: Joshua Miller [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 07, 2000 1: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