Reputation: 131
How do I send SMS to multiple recipients using SMS url in iPhone?
I am trying this but it doesn't work. Is there any way to send or not?
<a href="sms:phone number">sms</a>
Upvotes: 13
Views: 5548
Reputation: 177
Here's an updated <a> href formatting to send an SMS to multiple phone numbers tested on:
An example full <a> href link encoding:
<a href="sms://open?addresses=+12223334444,+12223334445?&body=Message%20Line%201%E2%80%A8Message%20Line%202">Send SMS to multi #s</a>
Formatting breakdown:
<a href="
sms://open?addresses=
+1
then phone number: 2223334444
,
between each additional phone number.?&
to support both Android(?) and iOS(&).body=
to specify a pre-formatted message.Message%20Line%201%E2%80%A8Message%20Line%202
">
Send SMS to multi #s
</a>
A couple of notes:
<head>
must include the <meta charset="utf-8">
set properly."....."
quote marks.%E2%80%A8
URL encoding.Upvotes: 3
Reputation: 1375
Use this:
sms:/open?addresses={phone number 1},{phone number 2},...
Upvotes: 12
Reputation: 57
The custom uri scheme seems to be an interesting approach to solve this problem, but we have to make specific iOS app or use an existing and compatible iPhone app, that I didn't find. Actually, only the first number of the list is used and iOS exclude all after the comma. If there are no ways to solve this, which is specific to iPhone, we have to use an SMS gateway (and pay each sms).
Hope someone have a solution.
Upvotes: 0
Reputation: 1501
Unfortunately, for now, there is no way to send a SMS to multiple recipients from a web app on iPhones with the sms scheme.
I believe a workaround is possible, if you specifically know the audience of your webapp. You could require the installation of a native app with a custom URL scheme, that creates the SMS upon request.
This app could register on multiplesms://
, read multiple phone numbers, and create the SMS (I think this is possible from different applications I've seen on the Internet, never used them though).
So in your webapp, you could write:
<a href="multiplesms:+3581234567,+3582234567">Two numbers, no body text</a>
.
But remember you would have to require the installation of the native app on your users' iPhones.
Upvotes: 1
Reputation: 136605
Try
<a href="sms:+3581234567,+3582234567">Two numbers, no body text</a>
Source: developer.nokia.com and openmobilealliance.org (page 20)
If it doesn't work, I would try
<a href="sms:+3581234567;+3582234567">Two numbers, no body text</a>
Upvotes: 0