我正在使用 Jamaa SMPP 客户端
有没有人有发送短信的工作示例?
这是我的代码:
var textMessage = new TextMessage() { DestinationAddress = "XXXXXXXXX", SourceAddress = "XXXXXXXXX", Text = "test" };
var client = new SmppClient();
client.Properties.SystemID = "xxxx";
client.Properties.Password = "YYYY";
client.Properties.Port = ZZZZ;
client.Properties.Host = "255.255.255.255";
client.Properties.DefaultEncoding = DataCoding.SMSCDefault;
client.Properties.AddressNpi = NumberingPlanIndicator.Unknown;
client.Properties.AddressTon = TypeOfNumber.Unknown;
client.ForceConnect();
client.Start();
client.SendMessage(textMessage);
client.Shutdown();
但我的提供者说我缺少绑定信息 ( Bind_transceiver
, Bind_transmitter
, Bind_receiver
)