Exceeding Max Email Address Sizes

前端 未结 2 1747
滥情空心
滥情空心 2020-12-19 04:10

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

相关标签:
2条回答
  • 2020-12-19 04:53

    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.

    0 讨论(0)
  • 2020-12-19 04:53

    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
    
    0 讨论(0)
提交回复
热议问题