A2P 10DLC Announcements - using "from phone number" is not to be used going forward
A2P 10DLC Announcements In order to send SMS and MMS messages to the U.S. using 10DLC phone numbers, all messages must be sent via an approved application-to-person (A2P) Campaign. Any unregistered U.S.-bound messages will be blocked. To see which of your numbers are compliant, you may check the registration status of your phone numbers . Learn more about the A2P 10DLC messaging registration process
We need to be able to set the sending identifer to the campaign sid. Not the sender phone number.
Promise.all(
numbers.map(number => {
return twilio.messages.create({
to: number,
from: process.env.TWILIO_MESSAGING_SERVICE_SID,
mediaUrl: ['https://mediaurl'],
body: body
});
})
)