Diego
Diego

Reputation: 5032

Render view with all css classes inline for html email

As terrible and disgusting as this sounds, I would like to be able to render a view in ASP.NET MVC so that all css classes in the elements are rendered inline in the tags. The sole purpose of this is to have email clients recognise html, as I believe that style must be inline for it to be recognised in email messages.

Is there any facility in ASP.NET MVC (or ASP.NET) that allows this?

Upvotes: 0

Views: 751

Answers (1)

rboarman
rboarman

Reputation: 8214

Have you seen this?

http://premailer.dialect.ca/

Source code is available for it as well.

Upvotes: 1

Related Questions