This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
In the docs is written:
By default, the view given to the send method is assumed to contain HTML. However, by passing an array as the first argument to the send method, you may specify a plain text view to send in addition to the HTML view:
Mail::send(['acme.blog::mail.html', 'acme.blog::mail.text'], $data, $callback);
but the mail.text view file is ignored. For the plain text part of the message also the mail.html view file is used. Did I miss something? Or is this a bug?
I don't know but you can have both views (plain text and html) in the same view file. see here:
It should work, it's parsed here:
https://github.com/laravel/framework/blob/5.5/src/Illuminate/Mail/Mailer.php#L261:L286
Last updated
Thank you mjauvin, plain text and html in the same file worked properly.
However passing an array as first argument to the send method didn't work as expected. I've tried it with and without array keys. (Btw. passing an numerical array with only one element throws an exception.)
I think, this is a bug...
1-6 of 6