More Blog Posts

How to Create a Link That Sends an SMS Text Message

With a bit of HTML, it's possible to create a hyperlink that sends an SMS message. You can even prepopulate the SMS body text via the link! Here's how.

Featured image for the article

Sending SMS Texts from a Link

Links need no introduction. They’re everywhere on the internet, literally. In HTML, links are defined with the <a> tag. They also contain an href attribute that specifies where the link should, well, link to. Many developers know that they can launch an email using “href=”mailto:[email protected].” You can also start a phone call using “href=”tel:+1954123555.” But few people know that you can launch the SMS app on your website visitors’ phones with an HTML link. This is perfect for starting conversations with your customers, especially when you consider that you can add a Click to Text link to more than just text.

Start Sending Texts Today

We’re confident you’ll love how easy it is to text your customers with SimpleTexting. That’s why we let you try it free for two weeks. No credit card required.
Try Us Free

No credit card required

Add Click to Text to the following places, or anywhere you may include an HTML link:

  • Your site’s drop-down menu or main navigation
  • Your contact page
  • Images
  • Call to Action text
  • Buttons
  • Email signatures

It only take a couple of minutes to create an HTML link that sends a text. And you can even pre-populate the SMS body text via the HTML link. Here’s how:

1. Write Your Link Text

This is the text that your website visitors will read and click on. Keep it simple, and be sure to make it clear what will happen when they click. For example, “Click here to send us a text.”

2. Write Your Default SMS Message

When visitors click on your link, their SMS app will be launched with a pre-written message. Consider who your users are, what they’re looking for, and why they’re communicating with you. Then go ahead and write your default message. A restaurant, for example, may want to use the message, “Hi there, I’d like to place an order for…” Be sure to place your message through a URL encoder.

3. Create Your Hyperlink

Now that you have the link text and SMS message written, it’s time to put the two together. If you’ve ever added an HTML link to your website, the process for creating a Click to Text link is exactly the same. Set up your href attribute like this:

<a href="sms:+18664504185?&body=Hi%2520there%252C%2520I%2527d%2520like%2520to%2520place%2520an%2520order%2520for...">Click here to text us!</a>

💡SimpleTexting Tip: Gmail and Outlook strip HREF tags, so in order to circumvent any SMS protocol related speed bumps, try to use an email service like MailChimp!

Free Click-to-Text Button Generator

What’s better than sending SMS texts from a link? Sending them from an attention-grabbing button.

We make it unbelievably easy for you to add a button to your site that launches your customer’s native text messaging app. Our free click-to-text button generator also allows you to prewrite the SMS and prefill your contact details.

The best part is that this tool requires no design or coding experience. Everything from the prewritten SMS to the icon to the font-type is easily customizable. Once you are happy with your creation, all you have to do is paste the automatically generated code into the footer of the pages where you want your button to appear.

Get a click-to-text button on your website in 10-minutes. (You don’t even need to be a SimpleTexting customer.)

Free Mobile Sign-Up Widget

Click-to-text buttons are great for providing SMS customer service or generating inbound sales inquiries. However, if you want an easy way to promote your keyword, then consider our free mobile sign-up widget.

When visitors click on the button, it opens up a pop-up graphic that provides more details about your promotional SMS program. When vistors click on the pop-up, your customer’s native text messaging app is opened, with the keyword typed out and your contact details prefilled.

Similarly to the click-to-text button, everything is 100% customizable. No need to take our word for how easy it is to build, try it out today.

Hiding Your Link on Mobile and Other Challenges

As with all new technologies, there are still some discrepancies across operating systems and devices. Even though many desktops and laptops are capable of sending SMS messages, these links work best on mobile devices. We recommend hiding your Click to Text link on desktop. Some versions of iOS don’t accept pre-written messages. Use an analytics tool to determine what OS the majority of your visitors use, then adjust accordingly.

Should You Add Texting to Your Website?

In most cases, the answer is yes. The internet is slowly coming around to the realization that consumers prefer communicating with brands via text message. Still, updating your website with a text-enabled number is a big decision. If you have any doubts or need help getting set up, reach out to our support team by clicking the blue chat bubble in the corner of your screen. We’re here for you.

Alfredo Salked
Alfredo Salked

Alfredo leads the marketing team at SimpleTexting. In addition to writing about SMS, he also talks about it—literally. Our how-to videos are narrated by him.

More Posts from Alfredo Salked
Never miss a beat!

Stay up to date on the latest marketing trends, tactics, and strategies when you subscribe to our monthly newsletter.

Send Your First Message in Minutes

Start a text marketing campaign or have a 1-on-1 conversation today. It's risk free. Sign up for a 14-day trial and get access to all of our features.

Try Us Free