|
Not
necessarily a fault, but <cfmail> also loops over
queries.
Instead of using the cfoutput tag around the cfmail
tag, just include a 'query=latetasks' in the cfmail tag.
I'm
actually surprised that you didn't get an error saying you couldn't embed the
cfmail within the cfoutput query. I'm sure I got an error like that when I tried
this years ago.
Secondly, if you are defining the 'email' variable
outside the loop, then it will only ever send all email to this user. Nothing is
every changing what this variable is set to within the loop.
Is
there somesort of variable within the query that should define who the email
goes to?
Is
this where the 'assigned_to' is coming from?
If the
'assigned_to' usernum, the username, and their email address is all stored in a
database, you might try joining these tables together so that your query gives
you the correct email address, and not just a user number.
Hope
this helps a bit.
Darren
Tracey
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ |
Title: Message
- [cfaussie] RE: Missing a loop somewhere Mark Stanton
- [cfaussie] Re: Missing a loop somewhere Darren Tracey
- [cfaussie] Re: Missing a loop somewhere Mat Bryant
- [cfaussie] RE: Missing a loop somewhere Steve Onnis
- [cfaussie] Re: Missing a loop somewhere Dean Brandt
- [cfaussie] Re: Missing a loop somewhere sean
- [cfaussie] RE: Missing a loop somewhere Dean Brandt
