-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer] Change the DSN semantics #33424
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
Conversation
to make it easier to upgrade, should we deprecate the old syntax instead of dropping it directly (which would even transform them to supported |
f6c6f99
to
6e67fa9
Compare
@stof The component is marked as experimental. Moving to the next syntax is easy enough IMHO. |
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Change the DSN semantics | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | BC breaks? | yes | Deprecations? | no <!-- please 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 | symfony/symfony-docs#12258 I'm not very satisfied with the current DSNs for the Mailer. First, the scheme/protocol should use the provider name, then, there is no way to change the host, which would be nice to debug more easily (using a requestb.in service for instance). Before: ``` smtp://USERNAME:PASSWORD@mailgun http://KEY:DOMAIN@mailgun ``` After: ``` mailgun+smtp://USERNAME:PASSWORD@default mailgun+http://KEY:DOMAIN@default # New mailgun+http://KEY:DOMAIN@somewhere.com:99 ``` SMTP DSNs did not change, but the special sendmail one did: Before: ``` smtp://sendmail ``` After: ``` sendmail+smtp://default ``` And for the `null` transport: Before: ``` smtp://null ``` After: ``` null://null ``` Commits ------- 469c989 [Mailer] Change the DSN semantics
My concern is that some of the existing DSNs will change meaning without warning the user while still being accepted (all the |
We did that for Messenger as we kept the "experimental" status for more than one version. |
This PR was squashed before being merged into the master branch (closes #12258). Discussion ---------- Move to the new DSN format for Mailer Documents symfony/symfony#33424 Commits ------- c9febee Move to the new DSN format for Mailer
…uz, tucksaun) This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Move to the new DSN format Documents symfony/symfony#33424 Cherry-picking #12258 that should have target 4.4 and also add a missing DSN update. Commits ------- a2c607b [Mailer] Move remaining DSN to new format ca56502 Minor tweaks be392bc Move to the new DSN format for Mailer
I'm not very satisfied with the current DSNs for the Mailer. First, the scheme/protocol should use the provider name, then, there is no way to change the host, which would be nice to debug more easily (using a requestb.in service for instance).
Before:
After:
SMTP DSNs did not change, but the special sendmail one did:
Before:
After:
And for the
null
transport:Before:
After: