Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
pdu smsSubmitPdu;

pdu= new smsSubmitPdu(txt_message.Text,txtDestinationNumber.Text,"");
Posted
Updated 6-Jan-14 22:35pm
v2

As sms, by definition, can send up to 160 characters, so not matter how you send it you have to break it up to chunks of not larger than 160!
 
Share this answer
 
Comments
Oskay Makenzi 7-Jan-14 6:36am    
thanks for that then is there a way i can integrate the use of UDH in the code to send longer text in chunks
Kornfeld Eliyahu Peter 7-Jan-14 6:53am    
UDH was invented to enable extension of SMS, including partial messages, so basicaly the answer is yes, but I think UDH is supported only on GSM systems...
Oskay Makenzi 7-Jan-14 7:13am    
So the GsmComm reference am using does not have that capability? and is there an alternative approach to solving the problem in a C# sms application
Kornfeld Eliyahu Peter 7-Jan-14 7:22am    
This may help you - http://www.codeproject.com/Articles/325731/Bulk-SMS-Sender (I don't know about GsmComm)
Oskay Makenzi 7-Jan-14 8:08am    
thanks alot
Not yet solved my problem anybody with a different idea
 
Share this answer
 
Am using GsmComm....Does it have the capability of UDH
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900