Skip to content

Commit dd3abef

Browse files
colq2taylorotwell
andauthored
[9.x] Add mailer name to data for SentMessage and MessageSending events (#46079)
* [9.x] Add mailer name to data for SentMessage and MessageSending events * Update Mailer.php --------- Co-authored-by: Oliver Wycisk <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent b5f3840 commit dd3abef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Mail/Mailer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ public function send($view, array $data = [], $callback = null)
253253
return $this->sendMailable($view);
254254
}
255255

256+
$data['mailer'] = $this->name;
257+
256258
// First we need to parse the view, which could either be a string or an array
257259
// containing both an HTML and plain text versions of the view which should
258260
// be used when sending an e-mail. We will extract both of them out here.

0 commit comments

Comments
 (0)