8000 Make the email validator a hard requirement of mailer by fabpot · Pull Request #31260 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Make the email validator a hard requirement of mailer #31260

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

Merged
merged 1 commit into from
Apr 27, 2019

Conversation

fabpot
Copy link
Member
@fabpot fabpot commented Apr 26, 2019
Q A
Branch? master
Bug fix? yes-ish
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

I think it makes sense to have the email address validator as a hard requirement of Mailer... as I don't see how you can send emails without an email address :)

@nicolas-grekas
Copy link
Member
nicolas-grekas commented Apr 26, 2019

Isn't the HTML5-regexp enough in real life?
RFC-compliant email validation is insane :)

@nicolas-grekas nicolas-grekas added this to the next milestone Apr 26, 2019
@xabbuh xabbuh added the Mailer label Apr 27, 2019
@@ -17,13 +17,13 @@
],
"require": {
"php": "^7.1.3",
"egulias/email-validator": "^2.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would add a dependency on a non-organizational repository outside of Symfony, which can cause all sorts of issues:

  • Bus Factor
  • Possibly slow patching of (security) bugs
  • less control over releases and how fast they can be done

I don't oppose using this package as a required dependency (though I agree with nicolas' alternative), just want to make sure the above issues (and possibly others) won't cause problems.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swiftmailer has 110M downloads and has been using this library for years. Drupal and Laravel are also using this library.

@fabpot fabpot merged commit 5ad2cb1 into symfony:master Apr 27, 2019
fabpot added a commit that referenced this pull request Apr 27, 2019
…pot)

This PR was merged into the 4.3-dev branch.

Discussion
----------

Make the email validator a hard requirement of mailer

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes-ish
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

I think it makes sense to have the email address validator as a hard requirement of Mailer... as I don't see how you can send emails without an email address :)

Commits
-------

5ad2cb1 made the email validator a hard requirement of mailer
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
@fabpot fabpot deleted the mailer-email-validator-req branch September 7, 2019 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0