0

Dont seem to be getting any sms sent back, account is in trial mode, but ive added my number to verified numbers, any ideas?

   [HttpGet]
    public ActionResult SmsRequest(FormCollection form)
    {   
    var model = new Models.SMSRequest();
    model.From = form["From"];
    //more code
    string AccountSid = "GUID";
    string AuthToken = "GUID";
    var client = new TwilioRestClient(AccountSid, AuthToken);
    //0000 = twilio assigned number
    var result = client.SendMessage("00000", model.From, "Thank you for your SMS");
    }

1 Answer 1

1

I found the answer, you need to ensure the sms number (sending from) is in the following format client.SendMessage("+44 0000 000000", model.From, "Body")

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.