send sms using java code part 2

Pubblicato il: 13 gennaio 2019
sul canale di: satyendra singh yadav
289
3

1. Diafaan_SMS_Server link
https://www.diafaan.com/download/Diaf...

2. Send SMS Java code file link

https://drive.google.com/drive/folder...

3 java code

import java.net.*;
public class SendSMS
{

public static void main(String[] args)
{
try
{


String username = "admin";
String password = "abc@123";
String to = "+919424672700";
String message = "Greeting from Satyendra Singh Yadav, Lecturer Govt Polytechnic College Nowgong";


String requestUrl = "http://localhost:9710/http/send-message?"+

"username=" + URLEncoder.encode(username, "UTF-8") +
"&password=" + URLEncoder.encode(password, "UTF-8") +
"&to=" + URLEncoder.encode(to, "UTF-8") +
"&message-type=sms.automatic" +
"&message=" + URLEncoder.encode(message, "UTF-8");
URL url = new URL(requestUrl);
HttpURLConnection uc = (HttpURLConnection)url.openConnection();
System.out.println(uc.getResponseMessage());
uc.disconnect();
}
catch(Exception ex)
{
System.out.println(ex.getMessage());
}
}

}


In questa pagina del sito puoi guardare il video online send sms using java code part 2 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato satyendra singh yadav 13 gennaio 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 289 volte e gli è piaciuto 3 spettatori. Buona visione!