SMS Sending via a Java Servlet

SMS Sending via a Java Servlet SearchSearch
Author Message
Peter Thompson
New member
Username: Ee8prt

Post Number: 4
Registered: 03-2004
Posted on Tuesday, March 16, 2004 - 02:00 pm:   

Hi,

I have the nowsms Gateway running succesfully and would like to use a Java Servlet to send an SMS via the Gateway.

Has anyone been able to do this? I.e. when a Java Servlet is called, it can trigger the nowsms gateway to send an SMS?

Thanks,


Pete
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2127
Registered: 10-2002
Posted on Tuesday, March 16, 2004 - 06:24 pm:   

Pete,

I wish I had some experience in writing Java Servlets, but I don't.

If you're just sending an SMS, you should be able to use URLConnection or HTTPURLConnection, because you just need to generate an HTTP GET to send a message through NowSMS.

MMS is more complicated because you have to post more content. Someone posted an example for MMS in the following thread: http://support.nowsms.com/discus/messages/485/1360.html

-bn