Results 1 to 4 of 4
  1. #1
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default 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?

  2. #2
    Sno's Avatar
    Sno
    Sno is offline Senior Member
    Join Date
    Apr 2010
    Posts
    196
    Rep Power
    5

    Default

    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.COM
    Last edited by Sno; 07-07-2010 at 09:08 PM.
    :rolleyes: ~ Sno ~ :rolleyes:
    '-~ B.S. Computer Science ~-'

  3. #3
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default

    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

  4. #4
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default

    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

  1. ZK Mobile 0.8.5
    By JavaBean in forum Java Software
    Replies: 1
    Last Post: 09-12-2013, 09:22 AM
  2. Replies: 6
    Last Post: 06-04-2010, 08:43 PM
  3. sending SMS between PC and mobile
    By Halayas in forum Sun Java Wireless Toolkit
    Replies: 6
    Last Post: 03-18-2010, 11:45 AM
  4. Replies: 1
    Last Post: 08-07-2009, 12:14 PM
  5. About JSP on Mobile
    By miir in forum New To Java
    Replies: 2
    Last Post: 06-12-2008, 06:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •