首页 > 解决方案 > vb.net 发送带有超链接的 mms 文本

问题描述

我还没有在网络上的其他任何地方找到我的答案。

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

我目前的代码是:

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 传输?

标签: vb.nethyperlinkmms

解决方案


推荐阅读