To be specific, here is what I am doing, and here is what I am trying to do:
I'm coding an ASP.NET page, with VB code behind. When the user clicks a button on the page, I send them an email with information and instructions. Rather than sending a plain text email, I send a nice, pretty, HTML-formatted one. Right now, I'm doing this in a way that I KNOW will be difficult to maintain. That is, I'm straight up writing out all of the html. i.e.
markup += "
"markup += ""
markup += "Required Documents"
markup += ""
...and so on. Is there a way to create an aspx page (with vb code behind), and send the html of that page in the body of the email? The information is dynamic, so this pseudo-page would need logic in the on-load event to format the html correctly.
Thanks!
本文介绍了一种在ASP.NET中使用VB代码生成动态HTML格式邮件的方法。作者希望能在用户点击按钮后发送包含动态信息的漂亮HTML邮件,但现有的实现方式难以维护。探讨了创建一个ASPX页面并将该页面的HTML内容作为邮件正文的可能性。

被折叠的 条评论
为什么被折叠?



