hi all,
i have a problrem. i need to send an email to employees what they have purchased and has been recieved. how would i go about quering the data grouping the items by the employee that has order and then sending an email to them.
this is what i would do..
select itemnum, description, datereceived, catalognum
from invy
where datereceived = '04/28/03'
and catalognum is not null
then i would goto a cfmail loop?
<cfloop query="query here">
<cfmail from='name@here' from = 'someone@here'>
#catalognum# the following items have been received to you stockroom please pick them up.
#itemnum#-#description#-#datereceived#
</cfmail>
</cfloop>
but when i run this it just loops through each itemnum and eamil each individual item to the employee..i do not get how you get all the items received on that day and group the items by employee then email?
can someone please help me.
tia.
JKA!
i have a problrem. i need to send an email to employees what they have purchased and has been recieved. how would i go about quering the data grouping the items by the employee that has order and then sending an email to them.
this is what i would do..
select itemnum, description, datereceived, catalognum
from invy
where datereceived = '04/28/03'
and catalognum is not null
then i would goto a cfmail loop?
<cfloop query="query here">
<cfmail from='name@here' from = 'someone@here'>
#catalognum# the following items have been received to you stockroom please pick them up.
#itemnum#-#description#-#datereceived#
</cfmail>
</cfloop>
but when i run this it just loops through each itemnum and eamil each individual item to the employee..i do not get how you get all the items received on that day and group the items by employee then email?
can someone please help me.
tia.
JKA!