

- #Java code to send sms from pc to mobile using internet how to#
- #Java code to send sms from pc to mobile using internet install#
#Java code to send sms from pc to mobile using internet how to#
In this article, I will guide how to send sms messages in the way 2.įirst, you have to prepare 1 USB 3G / 4G and 1 sim card to send sms messages (some 3G / 4G sim cards are only for internet access, so no SMS messages can be sent SMS messaging is possible, no internet connection required.Ĭonfig smslib as follows: extract the downloaded smslib folder. Installation is harder than the first one, I am struggling to find out the code and the code can run.
#Java code to send sms from pc to mobile using internet install#
In case you deploy the web server, it is impossible to tell the server / host provider, "Can you install me a USB 3G / 4G server on the server: o"

It's not very stable because you have to manage the hardware, for example, when I call the send command, another guy also accesses that 3G / 4G USB and fails. Need hardware devices such as sim card, USB 3G / 4G (this is also not very expensive). A lot of messages, many out-of-network messages =)) In Java app, we will connect to USB 3G / 4G and send the command asking it to send sms messages.Īdvantage: this way is free (sim still loses sms deposit), there is no fee or service charge, just as you text on the phone. Insert sim card into USB 3G / 4G, connect USB 3G / 4G to computer. This way we need to connect sim card to Java application via devices like USB 3G / 4G (dongle or dcom) only need 1 line internet transmission is okay)ĭisadvantages: lost =)) Method 2: Use your sim card to send sms.

This way you register an account with a provider like: twilio, nexmoĪfter having an account, in Java code you will send the request to the server of that provider (request including account, sms message to send, destination phone number) -> Service provider will determine if a valid account If valid, it will send sms to the destination phone number in the request.Īdvantages: This method is quite easy to do (the provider lib is short, easy to understand, with detailed instructions, developers need not care about hardware devices, mobile waves to send sms messages. I find out, there are 2 main ways to send SMS and use the following: Method 1: Use API provided by 3rd party On the next occasion, I have a task to send SMS I find out and example code 1 application to send SMS to share =)). Here this article about how to create application:
