Send asp.net mvc action result inside email

前端 未结 5 2080
礼貌的吻别
礼貌的吻别 2020-12-01 02:04

I\'d like to use my Action in asp.net mvc, as template engine, that results in form of string, that I could send in email.

Pseudo-Code:

public Action         


        
5条回答
  •  情深已故
    2020-12-01 02:57

    I don't have enough rep to comment but I thought I'd save people some time by pointing out that it seems like the accepted answer would work and it would be great if it did. However, it seems the WebForm View Engine just eats the TextWriter parameter. There is more info here: http://ayende.com/Blog/archive/2008/11/11/another-asp.net-mvc-bug-rendering-views-to-different-output-source.aspx

提交回复
热议问题