vb.net发送带有超链接的彩信文本

时间:2018-07-30 16:42:17

标签: vb.net hyperlink mms

我在网上其他任何地方都找不到答案。

我需要从Web应用程序(VB.NET)发送MMS文本,并且该文本消息需要包含可点击的超链接。

我当前的代码是:

Msg = "Your documents are now ready for pickup. Located" _
          & " in Box 7 " _
          & " Please download the support App. " _
          & "<a href=\"https://linksandroidurlhere.com\">Android</a>" _
          & " or " _
          & "<a href=\"https://linksIOSurlhere.com\">IOS</a>" _
          & " to access your keys."

Dim MsgB64 As String = Convert.ToBase64String(Encoding.Unicode.GetBytes(Msg))

Dim textURL As String = "http://www.ct.com/PushNotificationsendTextB64.aspx?Phone=" & ownerPhone & "&Content=" & MsgB64
Dim webClient As New System.Net.WebClient  

这种“排序”有效,但是超链接不是作为链接通过MMS传递的。相反,它们以“原样”文本显示。

如何格式化文本中的超链接,以使它们作为链接通过MMS传输?

0 个答案:

没有答案