VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Validate Email Address to RFC2821 and RFC2822

Ken Ashton  (4 Submissions)   VB function enhancement   Intermediate   Wed 3rd February 2021

Having failed to find anything similar, this function validates an email address. It takes into consideration the RFC2821 and RFC2822 rules and also the the limitations imposed by other systems in the real world, that often conflict with RFC's.

Inputs
Any email address requiring format validation

Assumes
This was written because I failed to find any similar validator that was not flawed in some serious way, even for general use. Any PSC user is welcome to use, improve, speed up, remove unwanted features, and/or modify the code as they wish for their own purposes.

Returns
Returns True of False, and has an option that allows the user to intercept and decide on the validity of a questionable emai address at run time.

Side Effects
If used in the extended 'allow ALL legal RFC characters, then 'Quoted text' is not checked.

Rate Validate Email Address to RFC2821 and RFC2822 (4(4 Vote))

Download Validate Email Address to RFC2821 and RFC2822

Validate Email Address to RFC2821 and RFC2822 Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters