Daniel
Daniel

Reputation: 16226

Exceeding Max Email Address Sizes

RFC Standard says the max email size is 320 (actually 256 according to http://www.dominicsayers.com/isemail/). Is there any conceivable scenario where email addresses could end up being bigger than this?

Upvotes: 10

Views: 2342

Answers (3)

Luis Alonso Ramos
Luis Alonso Ramos

Reputation: 61

This guy managed to have a 345 character-long email address and make it work:

The World’s Longest Active Email Address

Admittedly, such a long email address is completely pointless.

Upvotes: 0

psanf
psanf

Reputation: 883

Read this: http://www.eph.co.uk/resources/email-address-length-faq/ The upshot of it is that you should use 254 characters to store email addresses, because that is the maximum allowed in an SMTP transaction. This is specified in RFC5321 (your article says so, and is actually quoted in mine), which is authoritative.

Upvotes: 18

scunliffe
scunliffe

Reputation: 63588

To be honest, even if someone had a valid email address beyond 256/320 chars it would be a major pain to use.

Anyone using an email address that is even half as big as that (128 chars) needs to trim back!

although on the plus side, they likely get no spam!

For example both of these would be unusable:

//long domain
joe.shmoe@someveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylogdomain.com

//long username
someveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylonguser@aregularlengthdomain.com

Upvotes: 1

Related Questions