Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
almaudoh CreditAttribution: almaudoh commentedMost 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?
Comment #2
almaudoh CreditAttribution: almaudoh commentedWill consider this working as designed.