以HTML格式发送短信 [英] Send sms in HTML format

查看:100
本文介绍了以HTML格式发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望通过短信发送激活链接,而不显示实际链接,只需要文本

(例如点击此处激活)。

在我的电子邮件中,它有效完美地将Bodyformat声明为HTML格式



Fromm下面的代码:

这是我通过短信收到的:(< br />< a href ='http://www.evte.com/Account/Confirm?ActivationCode=1234>点击此处激活您的帐户。< / a>)



但是我想收到这个:(点击这里激活你的帐户)

如何在短信中这样做请保存我的一天



我尝试了什么:



I want send an activation link by sms without showing the actual link but Just the text
(eg. Click here to activate).
In my email it works perfectly by declaring the Bodyformat as HTML format

Fromm the Code below:
this is what I receive by SMS: ("<br /><a href = 'http://www.evte.com/Account/Confirm?ActivationCode=1234>Click here to activate your account.</a>")

But I want to receive this : (Click here to activate your account account)
How do I do this in the SMS Please save my day

What I have tried:

Dim bodi = "<br><a>Click here to activate your account.</a>"

Dim url As String = "https://api.smsgh.com/v3/send?" + "From=" + from + "&To=%2B" + to + "" + "&Content=" + bodi + "" + "&ClientId=aaaaaa" + "&ClientSecret=bbbbbbb" + "&RegisteredDelivery=true"

Dim client As New Net.WebClient()

 Dim text As String = client.DownloadString(url)

推荐答案

短信仅限文本:您无法以任何形式发送链接 - 特别是不能发送HTML - 并且可以通过以下方式点击收件人。

您可以通过电子邮件进行,但不能通过短信进行。
SMS is text only: you cannot send a link in any form - particularly not HTML - and have it "clickable" by the recipient.
You can do it in email, but not in SMS.


这篇关于以HTML格式发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆