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");
}
我找到了答案,您需要确保SMS号码(发送自)的格式为client.SendMessage(“ + 44 0000 000000”,model.From,“ Body”)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.