Sometimes, we want to pre-populate the SMS body text via an HTML link.
In this article, we’ll look at how to pre-populate the SMS body text via an HTML link.
How to pre-populate the SMS body text via an HTML link?
To pre-populate the SMS body text via an HTML link, we set the body
query parameter.
For instance, we write
<a href="sms:5555551212?body=hello world">Link</a>
to set the body
query parameter to the text we want to prepopulate when it’s clicked.
conclusion
To pre-populate the SMS body text via an HTML link, we set the body
query parameter.