Support the ongoing development of Laravel.io →
Mail Configuration Laravel

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.

Last updated 3 years ago.
0
moderator

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)

Last updated 5 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

rimace rimace Joined 8 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.