简体   繁体   中英

Sending and Receivng SMS with Java COMM API

I stumbled upon this guide on how to use it, but being the beginner that I am, it confused me on how to use it until I saw the answer in this guide.

However, I noticed that one of the five files is already named SMSClient and the step two in the second guide duplicates that file so I skipped it and headed for step three which was confusing since I got an error in this line:

SMSClient smsc = SMSClient(0);

I placed all the five java files plus the SendSMS.java file in the (default package) package of the src package, however Eclipse could not seem to find the SMSClient.java file.

Sorry if this is a very basic question, I've yet to have any lessons with Java at all and I'm feeling my way through these. Any help will be very much appreciated, may it be clarifications regarding the codes above or a better alternative to sending/receiving text messages. Thank you.

I advice you to use one of these alternative because they are supported and used by many developers:

A better alternative for SMS Send/Receive is Logica Open SMPP from HERE .. It's an open source API based on JAVA providing you with all you need in SMS technology. The website also has an SMC Simulator for testing which is very helpful..

Another alternative is Kannel: Open Source WAP and SMS Gateway from Here it's an open source API based on Linux which you can easily configure and you can use web services to send and receive SMS or SQLBox to send and receive through DB Transactions .. I personally use Kannel

Check the Documentation of Kannel from Here

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM