question about lists and CFMAIL

2012-12-02 Thread Eric Bourland
ColdFusion 9.0.2 MS SQL Server 2005 Greetings. I have a question about lists and CFMAIL. I need to send an email message to all email addresses in a data table that are not marked PaidDues. First, I query the data table to find all records with PaidDues = False (or 0). !--- ask for userIDs

Re: question about lists and CFMAIL

2012-12-02 Thread Matt Quackenbush
No, not on the right track. Look at the query attribute of cfmail. That's what you want to use. http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f8e.html HTH On Sun, Dec 2, 2012 at 3:03 PM, Eric Bourland e...@ebwebwork.com wrote: ColdFusion 9.0.2

RE: question about lists and CFMAIL

2012-12-02 Thread Eric Bourland
Matt, thanks for that. I made progress. I read up on the query attribute of CFMAIL. But after doing some research, I did find another way to make this application work: CFLOOP. This seems to be working fine -- but do you recommend another way? I could not figure out how the query attribute of

Re: question about lists and CFMAIL

2012-12-02 Thread Matt Quackenbush
No need at all for the cfloop. When you provide the query to cfmail it does the loop for you. On Sun, Dec 2, 2012 at 4:35 PM, Eric Bourland e...@ebwebwork.com wrote: Matt, thanks for that. I made progress. I read up on the query attribute of CFMAIL. But after doing some research, I did find

Re: question about lists and CFMAIL

2012-12-02 Thread Dean Lawrence
Eric, Take a look a the Sending query-based email on this page http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec14b97-7ffb.html You specify the query name in the query attribute and the email column as your To: attribute. Cfmail will then loop over the query

RE: question about lists and CFMAIL

2012-12-02 Thread Eric Bourland
No need at all for the cfloop. When you provide the query to cfmail it does the loop for you. Well, I believe you. At first I did try: cfmail query=NotPaid server=#REQUEST.MailingListServer# from=i...@nnvawi.org to=#NotPaid.UserEmail# /cfmail ... ColdFusion sends to only the first email

Re: question about lists and CFMAIL

2012-12-02 Thread Matt Quackenbush
Try scoping the to email: cfmail query=NotPaid ... to=#NotPaid.UserEmail[currentRow]# HTH On Sun, Dec 2, 2012 at 4:53 PM, Eric Bourland e...@ebwebwork.com wrote: No need at all for the cfloop. When you provide the query to cfmail it does the loop for you. Well, I believe you. At first

Re: question about lists and CFMAIL

2012-12-02 Thread Matt Quackenbush
Also, where is #FirstName# and #LastName# coming from? I am assuming they are also part of the query. If so, scope them as well. #NotPaid.FirstName[currentRow]# #NotPaid.LastName[currentRow]# On Sun, Dec 2, 2012 at 4:59 PM, Matt Quackenbush quackfu...@gmail.comwrote: Try scoping the to

RE: question about lists and CFMAIL

2012-12-02 Thread Eric Bourland
I take it all back. It is working: cfmail query=NotPaid server=#REQUEST.MailingListServer# from=i...@nnvawi.org to=#NotPaid.UserEmail# /cfmail Why did it not work before? Very like, user error. =) Thank you all again for your help. This is a success. Eric

RE: question about lists and CFMAIL

2012-12-02 Thread Eric Bourland
Matt, yep -- I scoped the variables. Seems to be working now. =) Eric -Original Message- From: Matt Quackenbush [mailto:quackfu...@gmail.com] Sent: Sunday, December 02, 2012 6:00 PM To: cf-talk Subject: Re: question about lists and CFMAIL Also, where is #FirstName# and #LastName#

searching between 2 date fields with where in cfquery

2012-12-02 Thread Andy Mann
i have a table that has two date fields (dateinx and dateoutx) and i need to find all the results for todays date that both fall between and on that date for a given customer: cID. database is msSQL2005 cfserver is 7 if todays date is 12/2/2012examples of vialable entries: -

Re: searching between 2 date fields with where in cfquery

2012-12-02 Thread Justin Scott
i have a table that has two date fields (dateinx and dateoutx) and i need to find all the results for todays date that both fall between and on that date for a given customer: cID. This should be fairly simple to add to your existing query... AND GETDATE() BETWEEN dateinx AND dateoutx