我在名为 template.html 的文件中有一个电子邮件模板,如何在 asp.net 中将其用作邮件正文?
问问题
4009 次
2 回答
3
这里有一个带有代码的示例。
或者您可以使用MailDefinition类。
于 2010-10-11T20:34:05.363 回答
3
你可以使用这个:
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");
于 2011-08-02T08:51:02.047 回答