-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Undocumented breaking change in Mailer when upgrading from 5.5 to 6.x #30592
Comments
Hey there, Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? We'll help you out and re-open this issue if so. Thanks! |
The not supported comment is great, but then there should be an upgrade guide from 5.5 to 6.x right? |
@driesvints if you read my original description you would have seen that my current Laravel version is 6.0.4. I put 5.6+ in the description of the issue because this effects all versions from 5.6 and up. |
@petermein there's an upgrade guide for each version between 5.5 and 6.0. You're always free to send in a PR to one of those. @lucasvdh but you mention
Which we don't support anymore. So I didn't understand why you said that 6.0.4 in your issue template. If there's something missing from an upgrade guide, feel free to send in a pr to the docs: https://github.com/laravel/docs/ |
While the upgrade guide could use an itemized index, I'd expect anyone who has trouble with mails after upgrading to ctrl+f the word mail: https://github.com/laravel/docs/blob/5.6/upgrade.md#mail
|
Description:
I am required to keep a record of all email messages which have been sent. It used to be that I could use the callback in the mailer (
Illuminate\Mail\Mailer
) to fetch the raw content of an email message (Illuminate\Mail\Message
) so I could persist it to storage.In Laravel 5.5 the callback given to the
Mailer@send
is ran after the body is set on the message.Since Laravel 5.6 the callback given to the
Mailer@send
is ran before the body is set on the message.This causes the body of the message to not be present in the callback. There is no documentation in the 5.6 upgrade guide about this breaking change that changes the callback from a "after"-callback to a "before"-callback.
Steps To Reproduce:
->toString()
on the$message
in the callback ofMailer@send
->toString()
on the$message
in the callback ofMailer@send
Misc
This issue has previously been reported here: laravel/ideas#1646
This issue regards this PR: #22995
This issue regards this specific commit: 0cd8899
The text was updated successfully, but these errors were encountered: