-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Unclear documentation about targeted RFC. #186
Comments
Hi @stefanotorresi ! |
Thanks for the update! Would you be interested in a PR that proposes different validation classes for different RFCs? My main use-case is that I'd like to validate against just 5321/5322, not 6531; i.e. the validator wouldn't allow non-ASCII characters. I think it should be easy enough to add some more warnings to the parser, what do you think? The main reason behind this is that there are some very popular mail services like Mailchimp/Mandrill that still don't support 6531. |
Would be interesting of course. For ASCII alone we could do something like:
With that you could do this use Egulias\EmailValidator\RFC532xEmailLexer;
use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Validation\RFCValidation;
$validator = new EmailValidator(new RFC532xEmailLexer());
$validator->isValid("examplë@example.com", new RFCValidation()); //false for a validation closer to RFC532x , you'd have to re-implement Local and Domain part parsers. |
Hello there,
It is unclear to me what RFC is being targeted here. From a glance at the code, it looks like 5321/5322 are the reference.
If that's the case, why are non-ASCII characters allowed in the local-part of the address when using the provided
RFCValidation
class? Those are only permitted by 6531.Or am I missing something?
The text was updated successfully, but these errors were encountered: