This is a collection of thoughts and statements about things that annoy me. I am a big, angry man. Hear me roar, or piss off and give me peace.

Friday, January 29, 2010

Email address pARSErs on web forms

I am fed up with people doing stupid things when checking email addresses on web forms. Apparently other people are too...

The main thing that really gets on my tits is this...
+ is an allowed character in an email address, for example:

bob@example.com (is an email address)
bob+randomthing@example.com (is the same email address with a +randomthing tag which helps people filter their mail appropriately, and saves people creating different email aliases for things.)

Far too many web forms do utterly stupid "sanity" checks on the email addresses entered, and are just wrong.

Stop it you fucking morons, read the RFC. It is the RFC that tells us what makes an email address acceptable or not, not whatever magical idea just popped in to your head. They're called standards for a reason.

1 comment:

Norgg said...

Use this: http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html