I'm using october's mail fascade to send emails. 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 when I do so, the mail.text view file is ignored. For the plain text part of the message also the mail.html view file is used, containing <br />
before linebreak.
Did I miss something? Or is this a bug?
My code:
$vars = ['msg' => 'Hello world'];
Mail::send(
['text' => 'respective.test::mails.text',
'html' => 'respective.test::mails.html'],
$vars, function($message) {
$message->to('name@example.com');
$message->subject('Test message');
});
I tried it with and without array keys. The first view file is always used for both parts. I think, this is a bug.