Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 621919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:55:41+00:00 2026-05-13T18:55:41+00:00

I want to send SMS to a mobile phone from a web application, is

  • 0

I want to send SMS to a mobile phone from a web application, is it possible? How do I do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:55:41+00:00Added an answer on May 13, 2026 at 6:55 pm

    You can use this free Java sample program to send SMS from your PC using GSM modem connected to your computer to your COM port. You also need to download and install the Java comm api from Sun.

    This program needs the following java files to function.

    1. SerialConnection.java (This file is used to connect to your COM port from your java program)

    2. SerialConnectionException.java (This file is for handling serial connection exceptions in your Java program)

    3. SerialParameters.java (This program is used to set your COM port properties for connecting to your com port from your java program)

    4. Sender.java (This is the program that implements runnable and sends SMS using the serial connection)

    5. SMSClient.java (This java class is the main class that can be instantiated in your own java program and called to send SMS. This program in turn will use all the above four files internally to send out your SMS).

    Download Send SMS Java sample program files

    /*
     *
     * A free Java sample program 
     * A list of java programs to send SMS using your COM serial connection
     * and a GSM modem
     *
     * @author William Alexander
     * free for use as long as this comment is included 
     * in the program as it is
     * 
     * More Free Java programs available for download 
     * at http://www.java-samples.com
     *
     *
     * Note: to use this program you need to download all the 5 java files
     * mentioned on top
     *
     */
    public class SMSClient implements Runnable{
    
      public final static int SYNCHRONOUS=0;
      public final static int ASYNCHRONOUS=1;
      private Thread myThread=null;
    
      private int mode=-1;
      private String recipient=null;
      private String message=null;
    
      public int status=-1;
      public long messageNo=-1;
    
    
      public SMSClient(int mode) {
          this.mode=mode;
        }
    
      public int sendMessage (String recipient, String message){
        this.recipient=recipient;
        this.message=message;
        //System.out.println("recipient: " + recipient + " message: " + message);
        myThread = new Thread(this);
        myThread.start();
    //    run();
        return status;
        }
        public void run(){
    
        Sender aSender = new Sender(recipient,message);
    
        try{
          //send message
              aSender.send ();
    
             // System.out.println("sending ... ");
    
          //in SYNCHRONOUS mode wait for return : 0 for OK,
          //-2 for timeout, -1 for other errors
          if (mode==SYNCHRONOUS) {
              while (aSender.status == -1){
                myThread.sleep (1000);
              }
          }
          if (aSender.status == 0) messageNo=aSender.messageNo ;
    
        }catch (Exception e){
    
            e.printStackTrace();
    
        }
    
        this.status=aSender.status ;
    
        aSender=null;
    
    
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to send SMS from my web application in PHP. Can anyone
I want to send an SMS message from my facebook application so that the
I want to send SMS from iPhone to another phone with some text and
hai friends In my application i want to send sms using nokia 3310c mobile
I want to do a sample application to send/receive SMS using mobile 5. Can
Possible Duplicate: sms from our site I want to send SMS from my asp.net
I want to send a SMS from my application. For that,i use MFMessageComposeViewController and
Possible Duplicate: How to programmatically send SMS on the iPhone? I want to implement
Want to send the text from my current vb application to the Active Window
Hi i want to send sms from ipod and also i will check whether

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.