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");
精彩评论