Unable to build a Markdown mail from a test environment

Posted 1 month ago by DNABeast

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 sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.