STOP receiving SMSes when using Twilio with C#.net

拈花ヽ惹草 提交于 2019-12-01 00:24:34

问题


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)


回答1:


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.




回答2:


My understanding is that twilio 'intercepts' the SMS message, recognizes the 'STOP', does what processing it needs to to suppresses future SMS messages on their end, but the original message will still get passed to you as always, so you will have the ability to still handle it on you end as well.



来源:https://stackoverflow.com/questions/21548739/stop-receiving-smses-when-using-twilio-with-c-net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!