prozbik / php-email-address-validation

Automatically exported from code.google.com/p/php-email-address-validation
0 stars 0 forks source link

Overall maximum length of an e-mail address #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have read that the overall maximum length of an e-mail address is 320
characters.  However, the following line in the "EmailAddressValidator"
code that restricts this overall maximum to 256 characters:

if (!$this->check_text_length($strEmailAddress, 3, 256))

Can you confirm which is correct?

Original issue reported on code.google.com by erikdsla...@gmail.com on 10 Aug 2009 at 6:39

GoogleCodeExporter commented 9 years ago
Maximum lenth of a email id is still 256 characters. The original version of 
RFC 3696
did indeed say 320 was the maximum length, but later an errata was published to
correct it back.

Here is the link to the errata: 
http://www.rfc-editor.org/errata_search.php?rfc=3696

So please close this ticket. Email Length being used is correct.

Original comment by navjotjs...@gmail.com on 11 Sep 2009 at 1:33

GoogleCodeExporter commented 9 years ago
Invalid, as far as I know mail standards. 256 is correct limit.

Original comment by witold.b...@gmail.com on 30 Jun 2010 at 1:40

GoogleCodeExporter commented 9 years ago
Closing as max length is 256 as per link above.

Original comment by d...@addedbytes.com on 18 Aug 2011 at 1:27

GoogleCodeExporter commented 9 years ago
According to Errata ID 1690 in 
http://www.rfc-editor.org/errata_search.php?rfc=3696, I believe the maximum 
length for e-mail addresses is 254, in order to accommodate the angle brackets 
pair for a final maximum of 256 characters.

Original comment by erikdsla...@gmail.com on 18 Aug 2011 at 6:51