MasoniteFramework / masonite

The Modern And Developer Centric Python Web Framework. Be sure to read the documentation and join the Discord channel for questions: https://discord.gg/TwKeFahmPZ
http://docs.masoniteproject.com
MIT License
2.21k stars 126 forks source link

Use a view for text content in a mailable #750

Closed tpow closed 1 month ago

tpow commented 1 year ago

Is your feature request related to a problem?

It is nice that mailables can build the html content of the email usingview() but you cannot use a view (template) for text.

What do we currently have to do now?

No response

Describe the solution you'd like

It would be nice to add either a text_view() method or add a parameter to view() to indicate whether it is for html or text content. For the latter, adding is_html=True would make this a non-breaking change.

Describe alternatives you've considered

No response

Would this be a breaking change ?

Anything else ?

No response