I would like to send notification emails with only plain text. But every email is send with the Content-Type: text/html" header.
Is there a way to set the Content-Type header to "plain/text"? Actually I only send plain-text emails, so it would be nice if there were a configuration for it.
I'm not sure how you create your mail object. But you can use $this->text instead of the $this->view method in your build function.
See: https://laravel.com/docs/6.x/mail#configuring-the-view (and scroll a little bit down)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community