Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

naing's avatar
Level 1

Standard email length

Hi experts,

Laravel email validation allows only 71 characters. Where can I see the detail info for email validation?

0 likes
4 replies
Snapey's avatar

Look in RegisterController. You will see that email has max:255 for the validation.

Where have you got 71 from?

naing's avatar
Level 1

I tried with 72 character string.

72 character email: 13121233332131121231121333333333333333333abcfddddddddda33333a3423@abc.co

It failed and show this error.

The email must be a valid email address.

I removed one character and it worked.

71 character email : 13121213332131121231121333333333333333333abcfddddddddda33333a3423@abc.co

lostdreamer_nl's avatar

It's in the RFC:

The maximum length of the local part is 64 characters. (RFC 2821, section 4.5.3.1)

So "13121213332131121231121333333333333333333abcfddddddddda33333a3423" which is 66 digits will not work.

Neither will shortening it by 1 character.

Shortening it by 2 characters however will be a valid email.

Please or to participate in this conversation.