SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've seen a few sharepoint developers use XSLT files instead of HTML files as their e-mail templates when they need to send out various items from lists in emails to subscribers / clients.

I have setup the XSLT as I want the email to look like when it gets sent out, but how do I get it and use it through my C# code?

share|improve this question
Are you talking about the Alert templates? – Wictor Wilen MCA MCM MVP Aug 30 '11 at 12:08
@Wictor - No not those. This is for pure custom code only. – Daniel Ziga Aug 30 '11 at 12:14
up vote 1 down vote accepted

Use the XslCompiledTransform class, it's in the .NET Fx.

share|improve this answer
Looks promising. Can you link me some good examples? – Daniel Ziga Aug 30 '11 at 13:00
Just Google or Bing it! – Wictor Wilen MCA MCM MVP Aug 30 '11 at 13:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.