<cfscript>
Function isEmail().....
</cfscript>
In your page above the following and then do:
<cfloop query="emailLIST">
<cfif isEmail('#emailAddress#')>
...
<cfelse>
Bad address
</cfif>
</cfloop>
John
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 2:52 PM
To: CF-Talk
Subject: Verify an email address from a query
I've spent the last couple of hours looking at "isEmail" and regular
_expression_ stuff, but haven't gotten anything to work for me yet. I
swear somebody posted, just a few weeks ago, a good piece of working
code, but for some reason I can't seem to get the archive search to work
for me...
Here's essentially what I'm trying to do:
<cfloop query="emailLIST">
<IF THE EMAIL ADDRESS IS VALID>
<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>
Pointers please?
--
Les Mizzell
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

