Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Code to Validate email addresses

Re: Code to Validate email addresses

From: George Schlossnagle <george_at_omniti.com>
Date: Wed, 24 Oct 2001 07:55:12 -0700
Message-ID: <F001.003B3239.20011024074026@fatcity.com>

> Hi,
>
> We have implemented a form that emails reports. The user has to enter his
> email address.
>
> However, we are finding that a lot of users are entering incorrect and
> invalid email addresses.
>
> Obviously, we can do nothing if they enter an incorrect (but syntactically
> correct) email address.
>
> What I am looking for is:
>
> 1) A definition of the syntactically correct format of an email address
> (from some sort of authoritative source)

check out rfc 822 : http://www.faqs.org/rfcs/rfc822.html

>
> 2) Hopefully some pl/sql code that will validate a sting to see if it is a
> valid email address.

That's tough. To really syntactically validate an email address is really hard. There's a 3 page perl program in the backof the O'reily Matsering Regular Expressions Book that does the trick nicely. Maybe you could convert it to something in sqlj.....

>
> If anyone can assist, I would appreciate it!
>
> Regards
> Oweson Flynn
> _____________________________________________________________________
> "Tell me what you think, Captain, I'm all ears" - Spock
>
> Certified Oracle DBA
> The Flynn Consultancy
> Tel: 082-600-7-006
> Fax: (011) 782-9313
> EMail: oef_at_icon.co.za
>
>
>
> *******************************************************************
>
> This message may contain information which is confidential and subject to
legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and return and/or destroy the original message.
>
> *******************************************************************
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Oweson Flynn
> INET: oweson.flynn_at_liberty.co.za
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: George Schlossnagle
  INET: george_at_omniti.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Oct 24 2001 - 09:55:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US