Interested with Bulk SMS Philippines? Contact Us HERE

Sending Bulk SMS With Java

How to Send Bulk SMS With Java

Java remains to be one of the most popular programming language till today. Most of the websites and applications use Java programming language in their systems due to its high reliability and fast processing.

iSMS Philippines has been further developed by allowing bulk SMS to be sent using Java applications through our gateway.

To understand more about our iSMS Philippines API Key features, please visit Developer API page. All available features and configurations will be displayed at the iSMS Philippines Developer API page.

Sample Code

Please refer to the sample code below:

1. Replace the un,pwd and dstno to your account's username, password and recipient number(s) accordingly.
2. The mobile phone number can be separated by a comma value. For example, "659217311111,659217322222"

Click "isms" to send SMS after the application is successfully compiled.

Java Send SMS Demo Files
Bulk SMS Philippines with Java
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.net.URL;
import javax.swing.*;

public class isms
{
public static void main(String[] args) throws Exception
{
final URI ismsurl = new URI("http://www.isms.com.my/isms_send.php?un=xxxx&pwd=xxxxxx&dstno=xxxxxxxxxx&msg=Hi.&type=1&sendid=xxxxx");

JFrame frame = new JFrame("ISMS");
frame.setSize(150, 150);
frame.setVisible(true);
frame.setResizable(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

Container contentPane;
contentPane=frame.getContentPane();

JButton sendbutton = new JButton("isms");
sendbutton.setForeground(Color.RED);
sendbutton.setBounds(0,0,150,150);

sendbutton.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
if (Desktop.isDesktopSupported())
{
Desktop desktop = Desktop.getDesktop();
try
{
desktop.browse(ismsurl);
} catch (Exception ex)
{
}
}
}
});

contentPane.add(sendbutton);
}
}