2010-08-31 122 views
0

我从SQL数据库拉着一个超链接,并试图如下它嵌入到电子邮件程序:ASP.net超链接的电子邮件

<a href=http://www.google.com>My email link</a> 
:数据

 Dim dv As System.Data.DataView = CType(SqlDataSource2.Select(DataSourceSelectArguments.Empty), System.Data.DataView) 
     ''Add Ticket URL and comments to answers dictionary 
     Dim emailMessage As New MailMessage("[email protected]", "[email protected]") 
     emailMessage.Body = dv.Item(0).Item(1).ToString <--Location of email 

来自实例DB被拉

我试图让它显示为一个超链接的电子邮件,但相反,它显示完整的HTML如上。我试过HTMLDecode,但似乎没有做任何事情。有什么建议么?

回答

3

编辑:尝试emailMessage.isBodyHTML属性

相关问题