开发者

Using html page as mail body in asp.net

I have an emai开发者_C百科l template in a file called template.html, how can i use it as mail body in asp.net?


There's a sample here with code.

Or you could use the MailDefinition class.


You can use this:

File.ReadAllText("template.html")

//This is to read template.html then you can pass this through
//formatemail() function if you have or
//message.body = File.ReadAllText("template.html");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜