function send(message, phones){
    // Loop through phones
    phones.forEach((phone) => {
        // Send SMS with Twilio
        Twilio.sendSms({
            to: phone,
            from: Config.twilio_number,
            body: message
        }, (err, result) => {
            if(err) console.error(`Failed to notify ${phone}`, err);
            else console.log(`Notified ${phone}`);
        });
    });
}
/**
 * Sends an SMS meesage to a list of phone numbers
 * 
 * @param {String} message - A message to sent
 * @param {Array} phones - A list of phone numbers
 */
Sends an SMS meesage to a list of phone numbers

@param {String} message - A message to sent
@param {Array} phones - A list of phone numbers
Sends an SMS meesage to a list of phone numbers @param { String } message - A message to sent @param { Array } phones - A list of phone numbers
function send(message, phones){
    phones.forEach((phone) => {
        Twilio.sendSms({
            to: phone,
            from: Config.twilio_number,
            body: message
        }, (err, result) => {
            if(err) console.error(`Failed to notify ${phone}`, err);
            else console.log(`Notified ${phone}`);
        });
    });
}
function send ( message , phones ) { phones . forEach ( ( phone ) => { Twilio . sendSms ( { to : phone , from : Config . twilio_number , body : message } , ( err , result ) => { if ( err ) console . error ( ` ${ phone } ` , err ) ; else console . log ( ` ${ phone } ` ) ; } ) ; } ) ; }
Sends an SMS meesage to a list of phone numbers
Sends an SMS meesage to a list of phone numbers
// Loop through phones // Send SMS with Twilio