send sms using java code part 2

Published: 13 January 2019
on channel: 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());
}
}

}


On this page of the site you can watch the video online send sms using java code part 2 with a duration of hours minute second in good quality, which was uploaded by the user satyendra singh yadav 13 January 2019, share the link with friends and acquaintances, this video has already been watched 289 times on youtube and it was liked by 3 viewers. Enjoy your viewing!