Heya Ian,
You are of course right, and I would personally go down your
route, but in terms of just getting it to work, the CFMAIL tag is
enough.
But yes, as you said, validation may be very important (and I
would always recommend it), especially as the email may not be a
valid email (highly likely if user entered), and I'm not sure what
CFMAIL would do with this - probably error. So sure, I would do
something like:
<cfloop query="something">
<cfif isValid(something.email,"email")>
<cfmail ...>email here</cfmail>
<cfelse>
Invalid user email.
</cfif>
</cfloop>
It's not that any one version was wrong, we were all right.
But it's nice to see everyones points on this.
Good times! :)
Mikey.