I'm building an emergency response app for my company. I have a corporate email database, with everyone's mobile numbers, email addresses and hundreds of email groups defined. The goal is to build something that integrates with our maintained groups.
Proposed flow:
- Users sends an email to [goupname]@mydomain.com with subject '*text'.
- Mailbox Listener picks that up on the server, looks in the group for all members and retrieves their phone numbers.
- Server sends a Twilio SMS message to everyone in the group, using their phone number.
- Anyone in that group who replies vis SMS to that message, sends to the entire group.
- I want my listener out of the picture at this point. From here on, it's just a pure group text, phone to phone(s).
All of this is pretty easy for me, except the Twilio piece.
As you can see, the server/Twilio has a limited role. It's really just a gateway that allow us to use our vast list of groups for group SMS. Is this doable with Twilio? I see many examples of iterating through a list of numbers with a FOR loop, but those replies are going back to my SMS# I believe, and my Twilio number is still going to be involved in the replies. I want to start the group SMS, then have no further role.
Any thoughts/suggestions would be appreciated.