Eric,

On 11/21/2003 at 10:15, you wrote:

EC> Aside from _javascript_ validation of email address, what is a good
EC> method to validate an email address before it is sent?

As Steven said, you can check the format, but not for the validity of
the account. Format checking can get very crazy if you try to allow
for every possible format. I chose to validate for a common format
like [EMAIL PROTECTED] or [EMAIL PROTECTED]

<cfscript>
        function iswellformedemail(email) {
                if (refindnocase("^['_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.([a-z]{2,})$",arguments[1])) {
                        return true;
                } else {
                        return false;
                }
        }
</cfscript>

~ Ubqtous ~

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to