Results 1 to 4 of 4
Thread: Message On Mobile
- 07-05-2010, 01:06 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 51
- Rep Power
- 0
Message On Mobile
Hello everyone
I want to send sms on mobile by java program.I have successfully send mail by java program to send mail by using my gmailid and password.
Now i want to send messsage to mobile.
My First question is that is it possible to send sms to mobile witout any gsm modem.I was read an article he gave the code to send sms on mobile without any gsm modem.He used the sam code as i have used to send mail.He has used 10 digit mobile no plus address of service provider
menas xxxxxxxxxx@rpggmail.com something like that where x is the 10 digit no
So Please tell me is it possible?
- 07-07-2010, 09:05 PM #2
This is what I know of mobile phones.
I can send a sms message to my email. So with your phone. Trying sending a test message to your email address. When it arrives in your inbox, attempt to reply to the message, and see if it comes up in your phone.
if it can, than use that address.
EDIT:
I just tested my phone.
For verizon wireless, its the phone number 9995554444@VTEXT.COMLast edited by Sno; 07-07-2010 at 09:08 PM.
:rolleyes: ~ Sno ~ :rolleyes:
'-~ B.S. Computer Science ~-'
- 07-08-2010, 08:12 AM #3
Member
- Join Date
- Apr 2010
- Posts
- 51
- Rep Power
- 0
Thank y Sir.
I have tryed to send message on mobile i have used 919310242040@ri.irisme.net in which 9310242040 is my no.When I send the message it is successfully sent but no message comes on mobile.
Please tell me what is the problem.
Thanks.Last edited by amitabh; 07-08-2010 at 01:35 PM. Reason: Missing Something
- 07-08-2010, 01:38 PM #4
Member
- Join Date
- Apr 2010
- Posts
- 51
- Rep Power
- 0
Sir This Is My Code It Is Working Good For Sending mail on email but not working on mobile
Please Sir Check It
[
String to=jTextField3.getText().trim();=919310242040@ri.i risme.net
String subject=jTextField2.getText().trim();
String message=jTextArea1.getText().trim();
boolean debug=true;
String host="smtp.gmail.com";
String username="pandey.amitabh7@gmail.com";
String password="mygmailpassword";
String content=message;
String sub=subject;
Properties props=new Properties();
props.put("mail.smtp.host", host);
props.put("mail.smtp.auth","true");
props.put("mail.debug", "true");
Session session=Session.getDefaultInstance(props);
session.setDebug(debug);
MimeMessage msg=new MimeMessage(session);
try {
Transport transport=session.getTransport("smtp");
try {
msg.setContent(content,"text/plain");
transport.connect(host,username,password);
msg.setSubject(sub);
msg.setSentDate(new Date());
msg.setRecipients(Message.RecipientType.TO,to);
transport.sendMessage(msg,msg.getAllRecipients());
javax.swing.JOptionPane.showMessageDialog(this,"Me ssage Sent","Confirm Window",1);
System.out.println("Message Sent");
} catch(Throwable t) {
System.out.println("Unable To Send Message");
t.printStackTrace();
}
} catch(Exception e) {
System.out.println("Unable To Send Message");
e.printStackTrace();
}
]
Similar Threads
-
java message box, how to not show multiple message box with same title or content
By oohay in forum AWT / SwingReplies: 6Last Post: 06-04-2010, 08:43 PM -
sending SMS between PC and mobile
By Halayas in forum Sun Java Wireless ToolkitReplies: 6Last Post: 03-18-2010, 11:45 AM -
Geting Mobile Number, Mobile Operator, Location and Mobile Serial Number by J2ME.
By maruffaiz in forum CLDC and MIDPReplies: 1Last Post: 08-07-2009, 12:14 PM -
About JSP on Mobile
By miir in forum New To JavaReplies: 2Last Post: 06-12-2008, 06:16 AM -
ZK Mobile 0.8.5
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-17-2007, 05:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks