Setting up Twilio
SMS messages not working? Please ensure to check the following to troubleshoot the issue:
#1 That your account is not in trial mode. Twilio accounts in trial mode will not work and will get the following error:
The number is unverified. Trial accounts cannot send messages to unverified numbers; verify at twilio.com/user/account/phone-numbers/verified, or purchase a Twilio number to send messages to unverified numbers.
#2 The account is approved for the geo locations you are sending to. If you are in Malaysia for example sending SMS to the US or vice versa you have to configure you account to allow this or you will get the following error:
Permission to send an SMS has not been enabled for the region indicated by the 'To' number
https://www.twilio.com/docs/api/errors/21408