Simple solution. Use CFSAVECONTENT to save your desired email body to
a variable, then have the body of the email just be the variable,
i.e.:
cfmail ...#myVar#/cfmail
I pretty much do this as standard anymore, as it gives me more control
over cfmail output.
Pete
A number of replies - thank you. I just picked this one for no
particular reason to respond.
cfmail...
Verbiage...
[Here I want to tell the person all the various things they selected as
traits (for lack of a better word). These come from a one (their name
data) to many (traits) recordset, so
On 11/6/06, Stephens, Larry V [EMAIL PROTECTED] wrote:
Trying to send a message by cfmail that includes a list of positions I
retrieved using a query.
When I put cfoutput query... inside the cfmail tags I get a nested
output error.
If that's happening you can call the fields directly in
Use the query attribute of cfmail
Nic
Stephens, Larry V wrote:
Trying to send a message by cfmail that includes a list of positions I
retrieved using a query.
When I put cfoutput query... inside the cfmail tags I get a nested
output error.
Can't do?
Larry V. Stephens
Indiana
Can you please post the code this error is coming from?
On 11/6/06, Stephens, Larry V [EMAIL PROTECTED] wrote:
Trying to send a message by cfmail that includes a list of positions I
retrieved using a query.
When I put cfoutput query... inside the cfmail tags I get a nested
output error.
Nope, CFMail does an implicit cfoutput, I think as a result of the query
attribute being available within the cfmail tag (just a guess there). Use
cfloop instead.
-- Josh
- Original Message -
From: Stephens, Larry V [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent:
-Original Message-
From: Nicholas M Tunney [mailto:[EMAIL PROTECTED]
Sent: Monday, November 06, 2006 2:59 PM
To: CF-Talk
Subject: Re: cfmail and cfoutput
Use the query attribute of cfmail
Nic
Stephens, Larry V wrote:
Trying to send a message by cfmail that includes a list of positions
I
As was said, using a cfloop inside of the email will do what you want.
As an aside, it was suggested to use the query attribute of cfmail, I
would argue that you should never, ever use this unless you are on CF
version 5 or earlier.
When CF went to v6.0, the behavior of the cfmail tag was
There is no reasonable, practical way I am aware of to restart - after
the point of failure - a cfmail call right in the middle of itself,
such as when a bad email address is found in the middle of a query
result set. As a result of that, you run your query as normal. Then
run a cfloop over
On 11/6/06, Andrew Tyrone [EMAIL PROTECTED] wrote:
Of course, that's all in a perfect world I suppose.
Exactly. If you don't build a robust procedure then you have to
absolutely trust your data validation scheme and accept that if
anything gets past it you are OK with the whole routine
10 matches
Mail list logo