Skip to content

[Mailer] Fix error not being thrown properly #32895

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
Aug 3, 2019

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Aug 3, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

When the SMTP server returns a fatal error, the error is not thrown properly as catched and another error (empty) is thrown. That makes debugging very difficult and what we would expect anyway.

@fabpot fabpot added the Mailer label Aug 3, 2019
@fabpot fabpot added this to the 4.3 milestone Aug 3, 2019
@fabpot fabpot merged commit 15dbe4b into symfony:4.3 Aug 3, 2019
fabpot added a commit that referenced this pull request Aug 3, 2019
This PR was merged into the 4.3 branch.

Discussion
----------

[Mailer] Fix error not being thrown properly

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| 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        | n/a

When the SMTP server returns a fatal error, the error is not thrown properly as catched and another error (empty) is thrown. That makes debugging very difficult and what we would expect anyway.

Commits
-------

15dbe4b [Mailer] fixed error that is masked by another error
@fabpot fabpot deleted the mailer-real-error-code branch August 3, 2019 15:48
@fabpot fabpot mentioned this pull request Aug 26, 2019
fabpot added a commit that referenced this pull request Sep 6, 2020
This PR was submitted for the master branch but it was merged into the 4.4 branch instead.

Discussion
----------

esmtp error not being thrown properly

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | n/a
| License       | MIT
| Doc PR        | n/a

This is the same fix as #32895 but for esmtp transport

Commits
-------

976eea3 esmtp error not being thrown properly
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.

2 participants