8000 [9.x] Add Symfony Mailer to Upgrade Guide by Jubeki · Pull Request #7454 · laravel/docs · GitHub
[go: up one dir, main page]

Skip to content

[9.x] Add Symfony Mailer to Upgrade Guide #7454

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.

Alrea 8000 dy on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add empty line
Co-authored-by: Dries Vints <dries@vints.io>
  • Loading branch information
Jubeki and driesvints authored Nov 25, 2021
commit 6be7742c6be04108106a1ac260ecade5e063ec9b
1 change: 1 addition & 0 deletions upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ The `Illuminate\Mail\Message` class now contains an instance of `Symfony\Compone
Setting the `auth_mode` in the mail config was removed, because the authentication mode can be automatically negotiated between the Mailer and the SMTP server.

##### Failed recipients

It's no longer possible to get a list of failed recipients. Instead, if an email is failed to send, and exception will be thrown.
Copy link
Member

Choose a reason for hiding this comment

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

What kind of exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@taylorotwell
A TransportExceptionInterface will be thrown if the email could not be send.
https://symfony.com/doc/current/mailer.html#handling-sending-failures

The failed recipients are an artifact of Swift_RfcComplianceException, thus holds the invalid address (you can validate this yourself as well, before sending)
symfony/symfony#33812

It would probably be better to word it something like this:

Suggested change
It's no longer possible to get a list of failed recipients. Instead, if an email is failed to send, and exception will be thrown.
It's no longer possible to get a list of failed recipients. Instead, you need to validate the emails yourself before sending.
Furthermore to validate if an email was really send you need to check this with your E-Mail Provider. For example through webhooks.


##### Stream Options for SMTP transport
Expand Down
0