vb.net - 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 传输?
解决方案
推荐阅读
- windows - 如何使用所需的时间格式将时间从 CMD 提取到 Windows 剪贴板?
- java - 即使它们相同,也将属性添加到更改列表中。(Javers)
- c# - 使用 LINQ 的条件分组
- angular - 有没有办法刷新 ionic 3 中的指令?
- flutter - 如何在颤振中导入目录/包
- c# - 检查 json 中的多个设置(C#、Json)
- python - 如何在 Python 中的列表上运行算法并将结果存储在列表中?
- c# - 如何使用 ajax 发送一个非常大的字符串?
- python - 我正在尝试运行 jupyter notebook。但出现以下错误:
- vb.net - 如何获取活动 Web 表单的名称?