title: ASP.NET MVC Render View to a string for emailing
body: <p>I want to use MVC views to create the body for an email and I have come across this (<a href="http://www.brightmix.com/blog/renderpartial-to-string-in-asp-net-mvc/" rel="noreferrer">http://www.brightmix.com/blog/renderpartial-to-string-in-asp-net-mvc/</a>) but it doesn't seem to work with strongly typed views (ViewContext is null). But I was after something the would render a full view including a masterpage. </p>
  
  <p>I thought that if there was a way of just invoking a view with out redirecting and just writing to a different stream and sending the email within the controller that might do it, but I can't work out how to invoke a view.</p>
  
  <p>Any suggestions would be great!</p>
  
  <p>Thanks in advance.</p>
  
  <p>Gifster</p>