@@ -303,22 +303,19 @@ public function send($view, array $data = [], $callback = null)
303
303
304
304
$ data ['mailer ' ] = $ this ->name ;
305
305
306
- // First we need to parse the view, which could either be a string or an array
307
- // containing both an HTML and plain text versions of the view which should
308
- // be used when sending an e-mail. We will extract both of them out here .
306
+ // Once we have retrieved the view content for the e-mail we will set the body
307
+ // of this message using the HTML type, which will provide a simple wrapper
308
+ // to creating view based emails that are able to receive arrays of data .
309
309
[$ view , $ plain , $ raw ] = $ this ->parseView ($ view );
310
310
311
311
$ data ['message ' ] = $ message = $ this ->createMessage ();
312
312
313
- // Once we have retrieved the view content for the e-mail we will set the body
314
- // of this message using the HTML type, which will provide a simple wrapper
315
- // to creating view based emails that are able to receive arrays of data.
313
+ $ this ->addContent ($ message , $ view , $ plain , $ raw , $ data );
314
+
316
315
if (! is_null ($ callback )) {
317
316
$ callback ($ message );
318
317
}
319
318
320
- $ this ->addContent ($ message , $ view , $ plain , $ raw , $ data );
321
-
322
319
// If a global "to" address has been set, we will set that address on the mail
323
320
// message. This is primarily useful during local development in which each
324
321
// message should be delivered into a single mail address for inspection.
0 commit comments