TRENDING NEWS

POPULAR NEWS

Can We Access Way2sms Thrugh Java Mobiles

Is there any free SMS API to send messages in Java?

Hello Kowsigan Atsayam,We provide Free Bulk SMS API to send SMS in any platform. We also provide 5000 SMS Free on SMS API Integration with us. For more details feel free to contact us on +91–8982805000 or sign up with us on www.bulksmsserviceproviders.com/signin

How can I send an SMS via Way2SMS using Java code?

Java doesn't have an api to send sms directly. But it has network api through which you can connect to sms server and communicate with it..Fortunatley we have Way2Sms (free site that allows us to send sms).Way2Sms accountcredentials: holds sensitive information like username, password etc.URLConnector: that connects to way2sms server, send/receive data from it.Way2Sms: is the entry point that actually send credentials over connector and send/receive data from the way2sms server

JAVA based SMS block/SMS spam manager applications (Mobile Phones)?

What phone would you be running such thing in? Most phones which support Java only allow one app to run at the time, so whenever you are doing something with the phone the SMS manager would have to be stopped and therefore cannot block anything. At best it will filter the messages when you view them.

If you are looking for a app for a Nokia device, see Nokia's app store at http://store.ovi.com

How do I send text messages from a python script to a mobile number (if possible with a free gateway)?

You can send SMS through Python using Fast2SMS Service.There are many online services which provide API for the sending free SMS like Twilio[1] ,way2sms [2] , Fast2sms[3] etc.In this example I will describe about sending an SMS from a python code using Fast2SMS API.Sign up to Fast2SMS : Unlimited Free SMS in IndiaYou will be assigned with an API authorisation key[4] , which you need to be included in the Python code.You can send 20 free SMS daily. The message is sent with your mobile number as initials.Test by running the Python code below. Include your API auth key ,message to be sent and also include the mobile number of the recipients( I have considered 9999… , 8888…) . If you are using the Free SMS service than the default sender_id is FSTSMS.import requests

url = "https://www.fast2sms.com/dev/bulk"

payload = "sender_id=FSTSMS&message=test&language=english&route=p&numbers=9999999999,888888888"
headers = {
'authorization': "YOUR_AUTH_KEY",
'Content-Type': "application/x-www-form-urlencoded",
'Cache-Control': "no-cache",
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
For example If you want to send an “Good Morning” message to a recipients with mobile number 985411279 and 854112799 , then payload in the code changes topayload = "sender_id=FSTSMS&message=GoodMorning&language=english&route=p&numbers=985411279,854112799"
For more info : docs.fast2sms.comIf you have any problem, let me knowThankYouFootnotes[1] Communication APIs for SMS, Voice, Video and Authentication[2] Free SMS, Send Free SMS, Send Free SMS to india, Way2SMS Login, Free SMS Site, Free email alerts, email2SMS, SMS Alerts, send SMS to any Mobile, Mobile to Mobile free SMS[3] Unlimited Free SMS in India[4] Unlimited Free SMS in India

How do I actually code for SMS using Way2sms or any other sites using Java or C#?

Hello There,It is very easy to do SMS coding using Way2SMS or any other sites using Java or C#.Bulk SMS API allows application developer to integrate on their application and send the sms to all the numbers at one shot without login to their SMS panel. Anyone can integrate the Bulk SMS API into their applications, software, website, etc.,Through API we can able to check the Status of the sent messages, Delivery report, and group delivery report. We can able to send the Unicode messaging also.Once we integrate the Bulk SMS API in any of the application, the application trigger the HTTP API call with all the parameters when on required. The required parameters like SMS Service URL, User Name, Password, Mobile Number, Message, etc.. As soon as call the HTTP API, the api along with all the parameters will be send to SMS Gateway Server and the Bulk SMS Gateway evaluate all the parameters and automatically the message will deliver to the given number without login to the SMS panel itself. import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.net.HttpURLConnection;import java.net.URL;import java.net.URLEncoder;import java.util.Properties;public class JavaCode{public JavaCode() {}public static void main( String[] args) throws Exception{String postData=”";String retval = “”;//give all Parameters In StringString Username =”username”;String Password = “Password”;String MobileNo = “9xxxxxxxxx”;String Message = “Test message from java code”;String SenderID = “XXXXXX”;postData += “username=” + Username + “&password=” + Password + “&to=” +MobileNo +”&sender=” + SenderID + “&message=” + Message;URL url = new URL(“http://trans.kapsystem.com/web2s...HttpURLConnection urlconnection = (HttpURLConnection) url.openConnection();urlconnection.setRequestMethod(“POST”);urlconnection.setRequestProperty(“Content-Type”,”application/x-www-form-urlencoded”);urlconnection.setDoOutput(true);OutputStreamWriter out = newOutputStreamWriter(urlconnection.getOutputStream());out.write(postData);out.close();BufferedReader in = new BufferedReader( newInputStreamReader(urlconnection.getInputStream()));String decodedString;while ((decodedString = in.readLine()) != null) {retval += decodedString;}in.close();System.out.println(retval);}} - For further assistance mail to arif@kapsystem.For free demo http://www.kapsystem.com/freedem...

How do I get a complete Java code to send and receive an SMS using a GSM modem?

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 SunThis 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).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;  }}Thanks for the A2A :)

How can I make a program in Java which can send email and SMS in real?

You can send the mail by using Java with the help of package the JavaMail as per follow,import java.util.*;import javax.mail.*;import javax.mail.internet.*;import javax.activation.*;public class SendEmail{   public static void main(String [] args)   {          // Recipient's email ID needs to be mentioned.      String to = "abcd@gmail.com";      // Sender's email ID needs to be mentioned      String from = "web@gmail.com";      // Assuming you are sending email from localhost      String host = "localhost";      // Get system properties      Properties properties = System.getProperties();      // Setup mail server      properties.setProperty("mail.smtp.host", host);      // Get the default Session object.      Session session = Session.getDefaultInstance(properties);      try{         // Create a default MimeMessage object.         MimeMessage message = new MimeMessage(session);         // Set From: header field of the header.         message.setFrom(new InternetAddress(from));         // Set To: header field of the header.         message.addRecipient(Message.RecipientType.TO,                                  new InternetAddress(to));         // Set Subject: header field         message.setSubject("This is the Subject Line!");         // Now set the actual message         message.setText("This is actual message");         // Send message         Transport.send(message);         System.out.println("Sent message successfully....");      }catch (MessagingException mex) {         mex.printStackTrace();      }   }}You will get above code on any website.And for the SMS part you need to use some third party API to send the SMS.I used one API Way2SMS. Just login to Way2SMS and check the source code of website you will get the Java code there to send the SMS. They itself using the Java code to send the SMS. Happy coding.

How can I send a SMS with a Java code?

Deepak's answer is not strictly true -- you don't need a gateway. You can send SMS through a phone/modem attached to the computer. Use AT-commands:Sending SMS using Java and AT CommandsThe example there is for a Siemens GPRS modem.It might not scale, but if all you want is some occasional notifications it will do. Since you own the hardware no subscriptions are involved.

TRENDING NEWS