Open GoogleCodeExporter opened 9 years ago
Additionally I can't find anywhere that documents that parentheses should be
allowed in domain names. So after making the change listed above
bob@(foo)example.com valildates as a proper email address but none of the major
emails services seem to allow it.
Can you point out where this is specified as legal.
Original comment by ratb...@gmail.com
on 2 Feb 2012 at 6:37
Hi ratborg. I can answer the question about parentheses in domain names. They
are not allowed in Mailboxes (RFC 5321) but in the message body, the addr-spec
can have comments denoted by parentheses (RFC 5322). However, RFC 5322 also
notes they SHOULD NOT be used around the @ sign in the address.
http://tools.ietf.org/html/rfc5322#section-3.4.1
So if you're validating an email address to use in the envelope of an SMTP
message (the normal case) then parentheses are definitely not valid.
I think the C# code may be a little out of date but I don't maintain it myself.
Original comment by dominic....@gmail.com
on 8 Feb 2012 at 6:30
Original comment by dominic....@gmail.com
on 8 Feb 2012 at 6:31
Original comment by dominic....@gmail.com
on 8 Feb 2012 at 6:31
Original comment by dominic....@gmail.com
on 8 Feb 2012 at 6:33
Original issue reported on code.google.com by
ratb...@gmail.com
on 1 Feb 2012 at 9:25