body += "" & HtmlNewLine.ToString & ""
body += "Please enter Quotation."
body += "AFTER ENTER QUATATION MY LINK SHOULD BE THERE"
body += "" & HtmlNewLine.ToString & ""
body += "" & HtmlNewLine.ToString & ""
body += "Enquiry Details :"
body += "" & HtmlNewLine.ToString & ""
body += "" & HtmlNewLine.ToString & ""
For Each grvRow1 In grdVProdDetAdd.Rows
body += "" & CType(grvRow1.FindControl("lblSubGrp"), Label).Text & " "
body += "" & HtmlNewLine.ToString & ""
我希望将其显示为邮件中的链接,而不是显示为单词。请帮忙
答案 0 :(得分:0)
您应该使用<a>
标记将文字作为链接插入:
<a href=" + "\"" + linkvalue + "\"" + ">" + linkName + "</a>
答案 1 :(得分:0)
我从未听说过sendEmail
课程。如果它是导入的参考,您应该告诉我们从哪里获取它,以便我们可以帮助您。以下是MailMessage类的答案(&#39; mail&#39;是已定义的MailMessage变量):
mail.IsBodyHtml = True
mail.Body = "<a href="http://www.blabla.com/">Visit our website today!</a>"