From 6ea3bcb64c0eb39366ca9fb1832fec035fb43afd Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 10 Jul 2024 14:53:56 -0500 Subject: [PATCH] Update Mailer.php --- src/Illuminate/Mail/Mailer.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Illuminate/Mail/Mailer.php b/src/Illuminate/Mail/Mailer.php index dfb6da704741..85029d959b40 100755 --- a/src/Illuminate/Mail/Mailer.php +++ b/src/Illuminate/Mail/Mailer.php @@ -303,21 +303,15 @@ public function send($view, array $data = [], $callback = null) $data['mailer'] = $this->name; - // First we need to parse the view, which could either be a string or an array - // containing both an HTML and plain text versions of the view which should - // be used when sending an e-mail. We will extract both of them out here. + // Once we have retrieved the view content for the e-mail we will set the body + // of this message using the HTML type, which will provide a simple wrapper + // to creating view based emails that are able to receive arrays of data. [$view, $plain, $raw] = $this->parseView($view); $data['message'] = $message = $this->createMessage(); - // Next we need to generate the view content, allowing pass-through callbacks - // following content generation to utilise said content in header generation. - // For example Symfony's DKIM signing which requires html and plain content. $this->addContent($message, $view, $plain, $raw, $data); - // Once we have retrieved the view content for the e-mail we will set the body - // of this message using the HTML type, which will provide a simple wrapper - // to creating view based emails that are able to receive arrays of data. if (! is_null($callback)) { $callback($message); }