can some one help me with this query please
i have a cfmail running off a query
i want to be able to send mail to a list of recipietns from
my database
the query below works but only sends emails to the first
contact in the list
what can i do to my query to change this?
<CFQUERY datasource="#application.ds#" Name="GetSch">
SELECT cc.Code, gg.PlayerPhone, dd.Message, cc.Club_Abbrev
FROM appoint_table dd, SMS_Players_Table gg, SMS_Clubs_Table
cc
WHERE ServerSMS <= #CreateODBCDateTime(Now())# AND
dd.App_ClientID = gg.PlayerID AND dd.LoginID = cc.ClubID
AND ServerSMS <> ''
</cfquery>
<cfmail to = "craig_mac@bigutton.com.au" query="GetSch"
from = "test"
subject="">
to:#Code##PlayerPhone#
text:#Message#
from:#Club_Abbrev#
</cfmail>