Some gateways have an ability to send sms to multiple recipients at once. It makes sense when you have to send a hundred or a thousand of messages, so you make just one API call instead of a hundred or a thousand.
Is it possible to extend core to gateways API to check if the gateway supports multiple recipients? And obviously add corresponding function to the smsframework, something like sms_send_multiple() which will check that ability and will fall back to the multiple sms_send() calls if the gateway doesn't support multiple recipients?

Comments

almaudoh’s picture

Most gateways allow comma (or semicolon) separated list of recipient numbers. In that case call sms_send() specifying all the numbers. E.g.
sms_send('1234567890,9801234567,7650981234', $message, $options);

Do you have examples of gateways that do not accept comma-separated recipient numbers?

almaudoh’s picture

Status: Active » Closed (works as designed)

Will consider this working as designed.