在asp.net中使用html页面作为邮件正文
我在一个名为template.html的文件中有一个电子邮件模板,如何在asp.net中将其用作邮件正文?有一个示例,其中包含代码 或者您可以使用该类。有一个示例,其中包含代码 或者您可以使用该类。您可以使用:在asp.net中使用html页面作为邮件正文,asp.net,email,mailmessage,Asp.net,Email,Mailmessage,我在一个名为template.html的文件中有一个电子邮件模板,如何在asp.net中将其用作邮件正文?有一个示例,其中包含代码 或者您可以使用该类。有一个示例,其中包含代码 或者您可以使用该类。您可以使用: File.ReadAllText("template.html") //This is to read template.html then you can pass this through //formatemail() function if you have or //mess
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");
您可以使用以下选项:
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");
可能的重复可能的重复