Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is this email : "[email protected]" valid ? #385

Open
leo270323 opened this issue Jun 18, 2024 · 1 comment
Open

Why is this email : "[email protected]" valid ? #385

leo270323 opened this issue Jun 18, 2024 · 1 comment

Comments

@leo270323
Copy link

As i know the RFC 5322 does allow for the domain part to be an IP address if it is enclosed in square brackets, like so : phuonghoa.nguyen@[113.161.68.89] but when i input this email like : [email protected] then it's still valid

@leo270323
Copy link
Author

And in case : i input this email : phuonghoa.nguyen@[123.255.37.2] then its invalid ? I have take a look to the core of the package and i find the reason is in this case have report a warning like this :

$this->warnings[AddressLiteral::CODE] = new AddressLiteral();

so in this case still invalid (because i have implement NoRFCWarningsValidation rule)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant