Validating email addresses
I need to know what is valid for email addresses. I know that all alphabet characters, numbers, underscores, dashes and those @ signs are valid. Is there anything else valid? And should I make the email address all lowercase, I dont think uppercase are valid, but I'm not sure if that makes a difference or not.
So far my code checks for @@ or .. and if for some reason the user enters this it will say its invalid. I'm guessing that @. or .@ is also invalid.
Please help. Thanks.