Skip to main content

Overview

This guide shows how to send an SMS message to multiple phone numbers at once using Plivo’s APIs and the Node.js SDK.

Prerequisites

  • A Plivo account — sign up for free if you don’t have one.
  • An SMS-enabled Plivo phone number. You can rent a number from the Plivo console.
  • Node.js and the Plivo Node.js SDK installed.

Create and run the application

Create a file named send_bulk_sms.js and paste this code into it. To send a message to multiple numbers, join the destination numbers with the delimiter <.Replace the <auth_id>, <auth_token>, and <sender_id> placeholders with your actual values, and add the destination numbers to the destinations array.

Test

Save the file and run it from your terminal.
You should receive the SMS on all destination phones.