Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send sms via Twilio with url

Tags:

c#

sms

twilio

I'm using twilio to send SMS messages.

In the message I have an URL but instead of showing the entire URL (which works) I want something like "Click here" which is the URL.

To clarify:

What my SMS is now: Follow this link: http://www.someurl.com

What I want: Click here to ...

Where "Click here" is the url i.e. http://www.someurl.com

like image 445
Marijn Avatar asked Oct 31 '13 12:10

Marijn


People also ask

How do I send a URL in SMS Twilio?

Each SMS has to contain a unique link to a web page with the order status. Twilio doesn't have a built-in URL shortener for plain SMS, so we recommend using the Short.io API. First request to shorten a URL, then use the result when sending the SMS with the Twilio API.

Can you use Twilio to send SMS?

Using Twilio's REST API, you can send outgoing SMS messages from your Twilio phone number to mobile phones around the globe.

What is SMS API URL?

URL addresses that you need to use to connect to SMSAPI are: https://api.smsapi.com/ - primary. https://api2.smsapi.com/ - secondary.


2 Answers

As Devin says, you can't, SMS messages are pure text, not html. What you could do is use an off-the-shelf, or custom, url shortener (i.e.. bit.ly) if you want the urls to either be shorter, or personalized.

like image 73
E.J. Brennan Avatar answered Oct 13 '22 22:10

E.J. Brennan


Twilio evangelist here.

Since there is no such thing as "markup" in an SMS, there is no way to create HTML-style hyperlinks. The fact that a string of characters in the SMS message is recognized and becomes a hyperlink is completely dependent upon the device having that capability.

Hope that helps.

like image 21
Devin Rader Avatar answered Oct 13 '22 22:10

Devin Rader