On this page
An SMS link that opens a messaging app but does not send the message is usually behaving as a handoff, not as a sending API. The visitor reviews the recipient and any prepared text, then decides whether to send. This guide explains how to troubleshoot that handoff and provide a fallback when it fails.
Key Takeaways
- An
sms:link can open a messaging interface; it should not be described as sending a message automatically. - A prepared message body may not appear consistently across devices and messaging apps. Keep the message available on the page as a fallback.
- Test the exact link on the devices and apps relevant to your audience. An iOS result and an Android result are not enough to establish universal behavior.
- If your site must send a message without opening the visitor’s messaging app, use an appropriate server-side messaging service with the required consent and safeguards.
Why the link opens a draft
An sms: link asks the device to hand the action to an app that handles SMS links. Depending on the device and app, the visitor may see a compose screen, an app-selection prompt, or an error. A prepared recipient or message may be missing or editable.
This is different from submitting a web form to your server. Your page cannot assume that opening the messaging interface means the visitor sent anything. Use link text such as “Open a message to support”, not “Send message”, and avoid reporting the handoff as a successful send.
Advertisement
Create an SMS link with a fallback
The following HTML uses a fictional example number and a short, URL-encoded message. Replace the number and text before publishing. The query parameter is a common way to request a prefilled body, but its behavior must be checked in the target apps; do not rely on it as the only way to provide the message.
<p>
<a href="sms:+12025550123?body=Hello%2C%20I%20need%20help%20with%20the%20event.">
Open a message to support
</a>
</p>
<p>Or text this number: <strong>+1 202 555 0123</strong></p>
<label for="support-message">Message to copy:</label>
<textarea id="support-message" rows="3" readonly>Hello, I need help with the event.</textarea>
The visible number and selectable text help visitors whose devices do not have a configured messaging app, as well as those whose app ignores the body. The label identifies the text area for assistive technology. Do not make copying or using the link the only way to contact support if another channel is available.
In a URL, characters such as spaces and & can affect how a query is interpreted. Encode the message body rather than appending raw user-provided text. For example, JavaScript’s encodeURIComponent(message) can encode a dynamic body before it is added to the link. Keep the unencoded, human-readable message on the page too.
Keep the fallback accurate
If the recipient or message changes for an event or campaign, update both the link and the visible fallback together. Use a real, monitored number in production. Check that the message does not include confidential information: it may be visible in the page, the link, and the visitor’s messaging app.
Troubleshoot the handoff
- Check the exact link. Confirm the number, the
sms:scheme, and the encoded message. An accidental space, missing character, or unencoded query delimiter can change the link. - Open it on the target device. Note whether the browser hands the link to a messaging app or offers an app choice. If nothing opens, check whether a suitable app is installed and configured.
- Inspect the compose screen. Check the recipient and body independently. A link can open successfully even if the text is absent.
- Use the fallback. If the body is missing, copy the visible message into the app. If the handoff fails, enter the visible number in a messaging app or use another contact method.
- Check the final action. The visitor must decide whether to send. Only perform an actual send during testing if you have permission to use both the sending device and the destination number.
Advertisement
Test iOS and Android before a campaign
Platform-specific syntax and app behavior can change. This article could not be checked against current platform documentation, and its links were not tested on iOS or Android devices. It therefore cannot establish a current difference in draft behavior between those platforms or recommend a platform-specific variation as universally reliable.
Before an event or campaign, review the current platform documentation and test your exact published link on the devices and messaging apps your visitors use. Include more than one device or app where practical, and repeat the check after any material change to the link or campaign page.
For each test, record:
- Device, operating-system version, browser, and messaging app.
- Whether the link opened a compose screen or prompted for an app.
- Whether the recipient and message appeared correctly and were editable.
- What happened when no messaging app was configured, if you can safely test that condition.
- Whether the visible number and message were usable without the link.
Also test a message containing punctuation and characters outside basic English. Record differences as observations for those specific configurations, not as guarantees about every iOS or Android device. Test early enough to change the contact workflow if the handoff is unreliable.
Common Mistakes
- Treating a draft as a delivered message. Opening a composer does not confirm that the user sent anything or that a message was delivered.
- Assuming a prefilled body always works. Verify it on target configurations and keep the text copyable.
- Using misleading button text. Say that the link opens a message rather than promising an automatic send.
- Hiding the only contact number inside the link. A visible number gives visitors an alternative when the handoff fails.
- Testing only one device. Record the specific browser, OS, and messaging app for each result.
Best Practices
Keep prefilled text short and editable, and avoid sensitive data. Use a clear, accessible link label and provide an alternative contact method. For campaign reporting, distinguish a link click from a confirmed message; the click alone is not evidence of a send.
If automatic sending is a requirement, a server-side messaging provider is a different solution. Design that workflow around recipient consent, authorization, privacy, delivery reporting, and applicable provider and legal requirements rather than trying to make an sms: link send without user action.
Conclusion
An SMS link is a convenient way to start a conversation, not proof that a message was sent. Test the exact link on your target devices, describe it as opening a message, and provide a visible number and copyable text when the handoff or prefill fails.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.