Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

STOP receiving SMSes when using Twilio with C#.net

Tags:

c#

twilio

I am sending SMS via twilio C# to selected phone numbers. I see in FAQs in twilio that it is possible to filter out the numbers who do not wish to receive SMSes. I see this kind of information in the link: https://www.twilio.com/help/faq/sms/does-twilio-support-stop-block-and-cancel-aka-sms-filtering

My questions are:

1) When user replies STOP, how does twilio handles it?

2) How will my application know that someone has replied "STOP" and opted out from receiving messages? (Actually I want to update database when someone replies "STOP" to twilio and unsubscribe)

like image 601
shrekDeep Avatar asked Feb 04 '14 09:02

shrekDeep


People also ask

How do I block incoming messages on Twilio?

Unwanted incoming calls to your Twilio number can be blocked in a number of ways: Using a blank webhook, responding with the <Reject> verb, or even a "virtual block list".

Can you receive messages with Twilio?

Log in to the Twilio Console's Phone Numbers page. Click on the phone number you'd like to have connected to your Function. If you want the Function to respond to incoming SMS, find the A Message Comes In option under Messaging.

How do I opt out of Twilio?

If you are using a Messaging Service, you can configure your keywords using Advanced Opt-Out to match the compliant opt-out, opt-in and help message language from your short code application. You can also choose to disable Twilio's keyword handling altogether and use your own system.


1 Answers

Twilio Evangelist here.

This is a great question: for normal numbers when the persons sends back a 'STOP' message, Twilio will prevent your account from sending an SMS to that person again. However we will also log the 'STOP' message to your SMS logs so that you know they have opted out.

The person sending the 'STOP' SMS will then get this message

"You have successfully been unsubscribed You will not receive any more messages from this number. Reply START to resubscribe."

If you attempt to send them an SMS again, you will get an error from the REST API: "21610: Message cannot be sent to the 'To' number because the customer has replied with STOP".

The person can opt back into your messages by sending a 'START' message.

Hope this helps.

like image 132
xmjw Avatar answered Oct 11 '22 06:10

xmjw