これが私のコードです:
このページによると、CreateConcatTextMessage
メソッドは型の配列を返しますSmsSubmitPdu[]
が、それを送信しようとするSendMessages
とMessageServiceError 500
. 私は何が欠けていますか?
SmsSubmitPdu[] pdu2;
try{
pdu2 = SmartMessageFactory.CreateConcatTextMessage("My name is Barry Allen. And I am the fastest man alive. When I was a child I saw my mother killed by something impossible. My father went to prison for her murder.", "+639234597676");
comm.SendMessages(pdu2);
}
catch (MessageServiceErrorException e500){
MessageBox.Show(e500.ToString(), "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
catch (CommException e501){
MessageBox.Show(e501.ToString(), "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}