I am trying to send/receive SMS messages through the Gmail SMS plugin with Java, but I am not sure which Gmail Java client library would be best for this. I have hear of g4j and the google-java-client-api but I am not sure those are suitable. I have hear of the method of where you can send an SMS through SMTP, but you need to know the recipient's carrier's SMTP server, which is a little complicated since I would like to send an SMS to a phone number without knowing the carrier of the recipient. Any suggestions? Thanks!
Related
I was wondering if there is a way you can send an sms from mobile to pc using any language(preferably Java) without the use of gsm modem. I guess there should be some other way or some SMS API but my research didn't return anything. I want to use it for my final project at uni. If SMS is not an option, can you think of some other way of sending info from mobile to pcwithout having any internet connection. I know it sounds crazy, but i want to know from the experts if there is any way.
For each SMS I want to log the the name of the application which sent the SMS. Is there any way to do this.
The sender information that you get automatically via the Sms APIs is all lower level than the sending app, e.g. originating address or email address.
SMS is not really interested in application information, because that is too high level. I think your only way to get this information would be by some roundabout method that depends on action from the sender.
i tried to send sms via smpp account and i have the error "'Must be bound to the SMSC before sending packets", the problem is that when i checked the smpp account, it is connedcted to SMSC, but sms are not going, sms are not even reaching the SMSC. please can somebody help
the SMPP protocol expects the client to
connect
authenticate
you need to identify the user credentials for your client and authenticate before you send an sms to the Gateway.
also, the SMPP server must be returning an error code, it would be helpful to post that as well.
I need to implement a use case in which I need to auto-generate message to a new user to verify his mobile number by asking him to enter a number sent to his mobile in an SMS.
Does Spring Framework provide any integration support to implement such a use case?
Could someone suggest me how to do that?
Any suggestions are appreciated.
Thanks.
Sending SMS messages requires a gateway provider, e.g. Clickatell or Twilio or whatever. You then implement that provider's SDK to send messages.
It costs about $5k to setup a short code, and about $1500 per month to maintain it. Some providers, like Twilio, let you share a development short code for sending messages, but you can't receive any.
What I've done for verification is send a message via email to a phone, asking for the phone number and the provider. Then convert that into the phone's email address, e.g. 9785551234#vtext.com.
How do I send sms to mobile through javamail api?
And is it necessary to know j2Me for sending sms through java?
How do I send sms to mobile through javamail api?
JavaMail is for sending email, not SMS. However, if you can find an email-to-SMS gateway service such services do exist), then that might work for you.
And is it necessary to know j2Me for sending sms through java?
No.