FrenkyB
FrenkyB

Reputation: 7207

Send HTML in SMS (and phone reading it as HTML)

I am using C# application to send SMS messages to mobile phones. I have a problem with sending links - I can send a link like this:

http://example.com/confirmation?id=9423jqismjdj

What I would like to do is send SMS like this:

<a href='http://example.com/confirmation?id=9423jqismjdj'>confirm</a>

so users are not bothered with long links. Problem is, that phones can not read HTML. Is there any way to send HTML to mobile phone as SMS (and phone reading it as HTML)?

Upvotes: 2

Views: 9516

Answers (1)

ADyson
ADyson

Reputation: 61984

As you noted in the question, phones cannot understand HTML placed into SMS messages. SMS is not a web-based platform.

However if you place a valid URL in the message body, most modern devices automatically convert it to a tappable link anyway, so you don't need to worry about this.

A good idea when doing this is to use a URL-shortening service (there are many available online) to save space (and thus money), and avoid any issues with overly-long URLs, and parameter-encoding issues.

Upvotes: 4

Related Questions