Home arrow static arrow Java Programming [Archive] - SMS in Java
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - SMS in Java
This topic has 17 replies on 2 pages.    1 | 2 | Next »

Posts:39
Registered: 9/4/03
SMS in Java  
Jun 15, 2004 11:14 AM



 
Greeting all,

I have a simple question. I know there are a lot of 3rd party pieces of software to allow SMS messages to and from a phone.
I know that the bulk of problems that arise from SMS applications is that an SMS application can send a message to a phone number, but since the application/server doesn't have a phone number, its difficult to reply.

What I am really wondering though, is if its possible, through java (and NOT paying $400 for 3rd party software) to have a client that just sends messages to my phone? I don't care if the phone can reply, i don't need the java app to recieve SMS, just send it. I understand the biggest problem might be that i may need to have access to a wireless providers SMS server. Not sure? Any idea on this?

All i want is a java application that i type in a message, i type in a phone number, and it sends a message. I see them all over the internet. Is it possible to do for free, or for cheap?

Thanks in advance.
 

Posts:19,725
Registered: 9/26/01
Re: SMS in Java  
Jun 15, 2004 11:22 AM (reply 1 of 17)



 
I'm sure many folks will want to help you in your effort to create more phone spam.
 

Posts:957
Registered: 3/31/04
Re: SMS in Java  
Jun 15, 2004 11:27 AM (reply 2 of 17)



 
Got any dukes?
 

Posts:96
Registered: 5/19/04
Re: SMS in Java  
Jun 15, 2004 11:33 AM (reply 3 of 17)



 
All i want is a java application that i type in a
message, i type in a phone number, and it sends a
message. I see them all over the internet. Is it
Yes, this is possible and depends somewhat on the carrier of the subscriber.
The subscriber will have to pay for your message.
There are free http clients that will send these messages and you just need to find
out the protocol that they use (often I think SMPP). But if you try and connect directly
to an SMSC you may run into authentication problems if you don't use one of these
proxy http servers.

You can already send email messages to sms-enabled phones. This would be another
mechanism you could use.
 

Posts:3,258
Registered: 00-08-28
Re: SMS in Java  
Jun 15, 2004 11:42 AM (reply 4 of 17)



 
Greeting all,

I have a simple question. I know there are a lot of
3rd party pieces of software to allow SMS messages to
and from a phone.
I know that the bulk of problems that arise from SMS
applications is that an SMS application can send a
message to a phone number, but since the
application/server doesn't have a phone number, its
difficult to reply.

What I am really wondering though, is if its possible,
through java (and NOT paying $400 for 3rd party
software) to have a client that just sends messages to
my phone? I don't care if the phone can reply, i don't
need the java app to recieve SMS, just send it. I
understand the biggest problem might be that i may
need to have access to a wireless providers SMS
server. Not sure? Any idea on this?

All i want is a java application that i type in a
message, i type in a phone number, and it sends a
message. I see them all over the internet. Is it
possible to do for free, or for cheap?

Thanks in advance.

Well there are a couple of APIs out there that could provide such functionality. Out of the APIs that I have used i found Noctors API to be the best. You could get it from

www.noctor.com

But let me tell you this much before you use the API you need to understand the limitations of the SMPP protocol a little bit. There are three kinds of encodings you could use in SMPP. 7 bit GSM, 8 bit binary and unicode. With 7 bit GSM the max length of the message could be 160, with 8 bit its 140 and with unicode its 60 characters. So you cannot send a message beyond this length. Just mentioning that for you to decide if it fits your requirements because I have seen ppl having great hopes and then at the end going back.

 

Posts:39
Registered: 9/4/03
Re: SMS in Java  
Jun 16, 2004 10:11 AM (reply 5 of 17)



 
Heh, phone spam,

For starters, i'm not sure what you mean. Maybe in your area, but for me I have never gotten "spam" on my phone.
And for seconds, I am nto planning to do this to anyone's phone but mine. I just simply want to add an option to my java-based address book that would allow an alert to be sent as a text message, instead of email or pop on the window, etc.
And yes, I do know that the email thing would work. It seems that is my best option thus far, but i was just hoping that there would be a way with SMS, for all those phones that aren't able to do emailing, etc.
Thanks all, and no, i have no dukes. Most people are willing to help anyways, and I am very grateful!
 

Posts:19,725
Registered: 9/26/01
Re: SMS in Java  
Jun 16, 2004 11:34 AM (reply 6 of 17)



 
And for thirds,
Man, you're slow at responding to repliers. Most of them fell asleep waiting for you to ever come back.
 

Posts:777
Registered: 9/18/03
Re: SMS in Java  
Jun 16, 2004 12:38 PM (reply 7 of 17)



 
I created a phone alert text message using javax.mail.

If you send an email to: areacodePrefixSuffix@yourphone.company you get text message.
 

Posts:3,258
Registered: 00-08-28
Re: SMS in Java  
Jun 16, 2004 12:58 PM (reply 8 of 17)



 
I created a phone alert text message using javax.mail.

If you send an email to:
areacodePrefixSuffix@yourphone.company you get text
message.

Ever considered how? if youphonecompamy.company has a relay which checks the UAProfile for "areacodePrefixSuffix" whether this address accepts email or not. If it does then it sends it in email format and its called

email to email use case

If however the enduser accepts only SMS it would parse the MIME message create an SMS message in conformance with the SMPP protocol limitation some of which I listed in my previous post (might even end up truncating the email) and the connect to the SMSc and send it as an SMS.

it is email to SMS use case

If on the other hand the enduser is MMS capable convert from MIME to WSP and then send.

it is email to MMS use case

and so on.

What if the company doesnot provide that service or in certain cases you or the recipient doesnt have the package to recieve emails as SMS. Then you would end up in trouble.

SO the OP's question was a bit different. Its like if somebody asks in this forum how to send a MIME message you donot tell him to open hotmail account and type and press the send button.

cheers
 

Posts:39
Registered: 9/4/03
Re: SMS in Java  
Jun 16, 2004 2:14 PM (reply 9 of 17)



 
And for thirds,
Man, you're slow at responding to repliers. Most of
them fell asleep waiting for you to ever come back.

I don't quite udnerstand why you have the hostile attitude. I'm sorry if I offended you, as I don't think anything I said should have.

I ask if something's possible, you accuse me of being a spammer, and then you call me slow. How nice. Please be positive or please don't post. We are here to help eachother. If you don't want to help, don't post. Tell me, where in any of your posts were you trying to help in any way?

I hope your day gets a little better... it needs to.
 

Posts:39
Registered: 9/4/03
Re: SMS in Java  
Jun 16, 2004 2:16 PM (reply 10 of 17)



 
In the case of the email. I understand that its possible. It is my current solution now. AT&T allows for the phonenumer@mobile.att.net - works great.
The thing being that I want to allow others to use the address book, and it would be cool if everyone could use the feature to SMS. Just an idea.
Thanks again!
 

Posts:1
Registered: 6/16/04
Re: SMS in Java  
Jun 16, 2004 2:25 PM (reply 11 of 17)



 
And for thirds,
Man, you're slow at responding to repliers. Most of
them fell asleep waiting for you to ever come back.

I don't quite udnerstand why you have the hostile
attitude. I'm sorry if I offended you, as I don't
think anything I said should have.

I ask if something's possible, you accuse me of being
a spammer, and then you call me slow. How nice. Please
be positive or please don't post. We are here to help
eachother. If you don't want to help, don't post. Tell
me, where in any of your posts were you trying to help
in any way?

I hope your day gets a little better... it needs to.

visit the link and join the club insulted by warnerja
http://forum.java.sun.com/thread.jsp?forum=10&thread=526426

 

Posts:19,725
Registered: 9/26/01
Re: SMS in Java  
Jun 16, 2004 2:29 PM (reply 12 of 17)



 
Ahhah - NeeruSharma1 - yet another one of y13k's newest aliases. :-p
 

Posts:19,725
Registered: 9/26/01
Re: SMS in Java  
Jun 16, 2004 2:34 PM (reply 13 of 17)



 
I don't quite udnerstand why you have the hostile
attitude. I'm sorry if I offended you, as I don't
think anything I said should have.
I was just put off a little by the fact that you want to automate phone calls - I think we all get enough human/computer telemarketers (what I call phone spam) as it is.

I ask if something's possible, you accuse me of being
a spammer, and then you call me slow.
Well, you ask a question, get responses pretty quickly, and don't bother to reply back for a whole day. Yeah, that's slow.

Tell me, where in any of your posts were you trying to help
in any way?
Did I imply I was trying to help?
 

Posts:39
Registered: 9/4/03
Re: SMS in Java  
Jun 16, 2004 2:43 PM (reply 14 of 17)



 
I was just put off a little by the fact that you want
to automate phone calls - I think we all get enough
human/computer telemarketers (what I call phone spam)
as it is.
If i asked you how to use speed-dial, would you accuse me of being a telemarketer? If i asked you how to make my own email client or server, would you accuse me of being a mass spammer? Every technology can be used for good or bad. You can't always forbid the good to prevent the bad. I have a practical use for this. I am not at my computer most of the day, and I would like it to send me reminders as SMS messages. Simple, non spammy, useful, and NOT going to your phone.
Whoever invented email ought to be shot, cause they allowed for spammers, right?

Well, you ask a question, get responses pretty
quickly, and don't bother to reply back for a whole
day. Yeah, that's slow.
Is this fast enough for you? I can't always be at my PC to respond. The irony being that this is part of the reason I want to do SMS messages.

Did I imply I was trying to help?
I wish you would help. That's why I am here.
 
This topic has 17 replies on 2 pages.    1 | 2 | Next »