我使用ASP.NET C#通过Twilio试用帐户发送短信。我在twilio帐户中注册了这些号码,因为我正在使用试用帐户。没有收到任何错误,但短信也没有被发送。但在检查短信登录帐户时,它显示已发送/已发送。任何线索?
请找到我的代码段:
public void smsTwilio()
{
const string accountSid = "accountSid";
const string authToken = "authToken";
TwilioClient.Init(accountSid, authToken);
var to = new PhoneNumber("+91XXXXXXXXXX");
var message = MessageResource.Create(
to,
from: new PhoneNumber("+1XXXXXXXXXX"),
body: "This is the ship that made the Kessel Run in fourteen parsecs?");
Console.WriteLine(message.Sid);
}