2

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)?

9
  • 2
    As you already noted, phones cannot understand HTML in SMS messages. I think you answered your own question. Commented Dec 20, 2017 at 15:21
  • however if you use a valid URL in the message body, most modern devices automatically convert it to a tappable link anyway, so you don't even need to do this. Commented Dec 20, 2017 at 15:22
  • Problem is that link is very long. Commented Dec 20, 2017 at 15:23
  • what you might want to do is use a URL-shorterning service so you don't have to put massive URLs into your message. Plenty available online e.g. tinyURL etc. Commented Dec 20, 2017 at 15:24
  • If link is longer, device is not converting it to tappable link. Commented Dec 20, 2017 at 15:25

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Is it possible to attach the html file and open in browser?
Yes, if the device in question supports MMS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.