How to prepopulate a sms message with html
I wanted to create a button that would open a text message on any mobile device. I realized you can create an anchor tag with an href of sms
.
You can also prepopulate or fill in the text message using the body query.
Make sure you encode the text message body.
<a href="sms:+18664504185&body=Hi%2520there%252C%2520I%2527d%2520like%2520to%2520place%2520an%2520order%2520for...">Click here to text us!</a>