-
Notifications
You must be signed in to change notification settings - Fork 625
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
Email Validation is not RFC5321 compliant #986
Comments
Hello @jayesbe, With respect to the behavior of FILTER_VALIDATE_EMAIL, assuming we support sending emails in one or more of the results you provided, would you propose the implementation of an alternative filter (likely within For "does sendgrid support the above email addresses that are valid according RFC5321?", I would suggest reaching out to our support team. With best regards, Elmer |
@thinkingserious this is the best I can do in my research.. from the author of the filter_var regex implementation himself. https://stackoverflow.com/a/28770784 https://stackoverflow.com/questions/28280176/php-filter-var-and-rfc-5322 |
Thanks for the research and links! For a short term fix, have you tried bypassing the email validation filter for the emails that are failing? Syncing our internal validation at the API level with the appropriate filtering seems to be the long term fix. |
Just checking in to find out if you have implemented the short term fix and your thoughts on the long term fix. Thanks! |
I'm adding this feature request to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog. |
I just hit the same issue with a user trying to sign up for our service with an email like |
I have same issue with an |
Issue Summary
Email addresses where the local part end in a period are being flagged as invalid even though they are RFC5321 compliant.
This comment from seven years ago defines the issue fairly well
https://www.php.net/manual/pt_BR/function.filter-var.php#112492
Copying here to make it easier.
I found some addresses that FILTER_VALIDATE_EMAIL rejects, but RFC5321 permits:
Results:
The documentation does not saying that FILTER_VALIDATE_EMAIL should pass the RFC5321, however you can meet with these examples (especially with the first one). So this is a note, not a bug report.
Technical details:
sendgrid/php-http-client 3.10.7
sendgrid/sendgrid 7.6.0 using PHP.
So the issue is we have users in our system that do have email addresses where the localpart ends in a period. This email address is being flagged as invalid even though it should be perfectly find to send an email to.
I guess the question is, does sendgrid support the above email addresses that are valid according RFC5321 ?
The text was updated successfully, but these errors were encountered: