In light of GMail's [questionable support for CSS](http://www.campaignmonitor.com/css/), I'd like to apply `style` elements to everything in the HTML email I'm assembling.

I'm currently using MVC3's Razor to construct the email, then sending off the generated HTML. Is there any way for me to write the template with a style sheet, then transform it such that each element gets a `style` attribute with the appropriate styles?

---

For instance, in a normal web page, I would have something like 

```
<style>
    a { color:#1c5567; }
</style>
<a href="...">Click here!</a>

```

If a GMail user looks at this, they won't see it in that shade of teal. However, if I do 

```
<a href="..." style:"color:#1c5567">Click here!</a>

```

they will. But that is a huge maintainability headache. Thus I want a process that can take HTML with the former style and output it in the latter.

. For this, I want to take that existing CSS style and transform it such that `style="color:#1c5567;"` gets added to every `<a>` on the page.