go-mail/mail

SetBody as html template view file?

Closed this issue · 1 comments

Is there any possibility? that we can use "template view" file for
m.SetBody("text/html", "....view file.. path here"

Thanks

Have you seen SetBodyWriter? Take a look at the example.

I don't think it makes sense to bundle templating into this library as it violates the separation of concerns.