RE: CFMAIL TO param problems with large queries

2003-09-25 Thread Andre Turrettini
, September 24, 2003 4:54 PM To: CF-Talk Subject: RE: CFMAIL TO param problems with large queries FYI, I posted this BEFORE I saw Dustin's say there were 6000 emails in his list! Yikes! -Original Message- From: J E VanOver [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:33 AM

CFMAIL TO param problems with large queries

2003-09-24 Thread Dustin Snell [Unisyn Software]
Hello All, I am trying to use CFMAIL in 6.1 to email a large list that worked in CF 4.5. Apparently MM has added additional restrictions to what can be used in the TO parameter. Basically I have a query that gets about 6000+ records I then use the tag as such: cfmail query=sendnewsletter

Re: CFMAIL TO param problems with large queries

2003-09-24 Thread Dustin Snell [Unisyn Software]
[Unisyn Software] [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:34 AM Subject: CFMAIL TO param problems with large queries Hello All, I am trying to use CFMAIL in 6.1 to email a large list that worked in CF 4.5. Apparently MM has added additional

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread Josh Remus
Perhaps you should cfdump the query results and look? -Original Message- From: Dustin Snell [Unisyn Software] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 12:43 PM To: CF-Talk Subject: Re: CFMAIL TO param problems with large queries Another note - I also, tried

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread Matt Robertson
Wrap your cfmail statement in a recordcount test cfif sendnewsletter.recortcount lt 1 uh ohcfabort cfelse cfoutput#sendnewsletter.email#cfoutputcfabort /cfif The first block will isolate whether you have a problem with your query syntax. The second will output the email address, if one is

Re: CFMAIL TO param problems with large queries

2003-09-24 Thread Dustin Snell [Unisyn Software]
-Talk [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:13 AM Subject: RE: CFMAIL TO param problems with large queries Wrap your cfmail statement in a recordcount test cfif sendnewsletter.recortcount lt 1 uh ohcfabort cfelse cfoutput#sendnewsletter.email#cfoutputcfabort /cfif

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread Josh Remus
query code too. -Original Message- From: Dustin Snell [Unisyn Software] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 1:36 PM To: CF-Talk Subject: Re: CFMAIL TO param problems with large queries Oddly it seems that I am getting all the records but at the end

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread Matt Robertson
Well, at least you now know the source of the problem, and that its solution is a simple one. cfif len(sendnewsletter.email) cfmail... /cfif Not a true solution, but it'll get your app running instantly while you puzzle over the cause. Matt

Re: CFMAIL TO param problems with large queries

2003-09-24 Thread Dave Carabetta
Oddly it seems that I am getting all the records but at the end there is what seems to be a blank email address. When I cfoutput the results it outputs the text [empty string] at the end. Seems that should be impossible with the LIKE email ='[EMAIL PROTECTED]' in the query . The query is ordered

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread Ryan Kime
Just to add on to Matt's suggestion: cfif len(trim(sendnewsletter.email)) -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 12:48 PM To: CF-Talk Subject: RE: CFMAIL TO param problems with large queries Well, at least you now know

Re: CFMAIL TO param problems with large queries

2003-09-24 Thread Dustin Snell [Unisyn Software]
I am passing the query parameter to the CFMAIL tag directly. So I can't do this for each one. - Original Message - From: Matt Robertson [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:48 AM Subject: RE: CFMAIL TO param problems with large queries

Re: CFMAIL TO param problems with large queries

2003-09-24 Thread Dustin Snell [Unisyn Software]
TO param problems with large queries Oddly it seems that I am getting all the records but at the end there is what seems to be a blank email address. When I cfoutput the results it outputs the text [empty string] at the end. Seems that should be impossible with the LIKE email ='[EMAIL PROTECTED

Re: CFMAIL TO param problems with large queries

2003-09-24 Thread Dave Carabetta
I *am* disturbed with CF because this new attribute validation is *breaking* code that worked before in 4.5. This validation is unnecessary and is better to be left for the mail server to handle. It is especially a hassle when you are passing the query parameter to the CFMAIL tag the query

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread Matt Robertson
Dustin Snell wrote: I am passing the query parameter to the CFMAIL tag directly. So I can't do this for each one. Then as was pointed out, you'll need to fix your SQL (or the apparently unvalidated data; or both) straight up before you go anywhere. Data validation rules might be something you

Re: CFMAIL TO param problems with large queries

2003-09-24 Thread Dustin Snell [Unisyn Software]
help. Dustin - Original Message - From: Dave Carabetta [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:17 AM Subject: Re: CFMAIL TO param problems with large queries I *am* disturbed with CF because this new attribute validation is *breaking

Re: CFMAIL TO param problems with large queries

2003-09-24 Thread Dave Carabetta
As for your suggestion, as long as my code is using the QUERY param of the CFMAIL (instead of doing it one at a time) this will not work. Now in my query I am having to add all sorts of checks to make sure the address is valid. I have wasted my whole morning playing games with this tag. One of

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread J E VanOver
To: CF-Talk Subject: RE: CFMAIL TO param problems with large queries Well, at least you now know the source of the problem, and that its solution is a simple one. cfif len(sendnewsletter.email) cfmail... /cfif Not a true solution, but it'll get your app running instantly while you puzzle over

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread J E VanOver
Software] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 9:43 AM To: CF-Talk Subject: Re: CFMAIL TO param problems with large queries Another note - I also, tried: and email like '[EMAIL PROTECTED]' Still get the error below. Isn't it impossible then with this in my query that any

RE: CFMAIL TO param problems with large queries

2003-09-24 Thread J E VanOver
FYI, I posted this BEFORE I saw Dustin's say there were 6000 emails in his list! Yikes! -Original Message- From: J E VanOver [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:33 AM To: CF-Talk Subject: RE: CFMAIL TO param problems with large queries What if there's