like so and voila�..
<cfscript>
function validemail(addr){
if(REFindNocase("^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.(([
a-z]{2,3})|(aero|coop|info|museum|name))$", addr))
{IsValid = true;}
else
{IsValid = false;}
return IsValid;
}
</cfscript>
<cfoutput>
<cfloop query="emailLIST">
<cfif validemail(emailaddress)>
<cfmail ..blah, blah..send to #emailAddress#..blah, blah>
Sent: #emailAddress# <!---display so I can see where it went--->
<cfelse>
<!---display so I can see where it's screwed--->
Bad Address - somebody fix this!: #emailAddress#
</cfif>
<cfloop>
</cfoutput>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.767 / Virus Database: 514 - Release Date: 9/21/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.767 / Virus Database: 514 - Release Date: 9/21/2004
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

