Can you share your Mail class and view as well?
Feb 26, 2019
2
Level 28
Unable to build a Markdown mail from a test environment
I've made a new project. Created a Mailable with a markdown template. I can send the mail from a route.
Route::get('/demo', function () {
\Mail::to('[email protected]')->send(new \App\Mail\DanMail());
});
But, when I call it from a test environment it tells me...
InvalidArgumentException: View [ **ENTIRE ESCAPED HTML OUTPUT FROM MY MARKDOWN**] not found.
The exception comes from FileViewFinder line 137. Why is the HTML getting sent to where a blade file should be requested?
Please or to participate in this conversation.