8000 [9.x] Update from Swift Mailer to Symfony Mailer by Jubeki · Pull Request #7306 · laravel/docs · GitHub
[go: up one dir, main page]

Skip to content

[9.x] Update from Swift Mailer to Symfony Mailer #7306

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 5 commits into from
Sep 14, 2021
Merged
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
Fix withSymfonyMessage typehint
  • Loading branch information
Jubeki committed Sep 14, 2021
commit 51ada9c8ed90704837509cdc7682df8dba6a82bc
4 changes: 2 additions & 2 deletions mail.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ If you already have a raw image data string you wish to embed into an email temp

The `withSymfonyMessage` method of the `Mailable` base class allows you to register a closure which will be invoked with the Symfony Message instance before sending the message. This gives you an opportunity to deeply customize the message before it is delivered:

use Illuminate\Mail\Message;
use Symfony\Component\Mime\Email;

/**
* Build the message.
Expand All @@ -438,7 +438,7 @@ The `withSymfonyMessage` method of the `Mailable` base class allows you to regis
{
$this->view('emails.orders.shipped');

$this->withSymfonyMessage(function (Message $message) {
$this->withSymfonyMessage(function (Email $message) {
$message->getHeaders()->addTextHeader(
'Custom-Header', 'Header Value'
);
Expand Down
0